<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: What does &amp;quot;P&amp;quot; stand for in regular expression query? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/What-does-quot-P-quot-stand-for-in-regular-expression-query/m-p/261431#M78459</link>
    <description>&lt;P&gt;ty @bmacias84 that helps&lt;/P&gt;</description>
    <pubDate>Thu, 26 Jan 2017 19:58:57 GMT</pubDate>
    <dc:creator>pradjswl</dc:creator>
    <dc:date>2017-01-26T19:58:57Z</dc:date>
    <item>
      <title>What does "P" stand for in regular expression query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-does-quot-P-quot-stand-for-in-regular-expression-query/m-p/261429#M78457</link>
      <description>&lt;P&gt;I am trying to understand more about a regular expression query used in Splunk. what does character P stands for in the regex  example?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(?P)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 26 Jan 2017 17:19:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-does-quot-P-quot-stand-for-in-regular-expression-query/m-p/261429#M78457</guid>
      <dc:creator>pradjswl</dc:creator>
      <dc:date>2017-01-26T17:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: What does "P" stand for in regular expression query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-does-quot-P-quot-stand-for-in-regular-expression-query/m-p/261430#M78458</link>
      <description>&lt;P&gt;The &lt;STRONG&gt;P&lt;/STRONG&gt; is Python identifier for a named capture group.  You will see &lt;STRONG&gt;P&lt;/STRONG&gt; in regex used in jdango and other python based regex implementations.  &lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.python.org/3/library/re.html"&gt;https://docs.python.org/3/library/re.html&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://stackoverflow.com/questions/7988942/what-does-this-django-regex-mean-p"&gt;http://stackoverflow.com/questions/7988942/what-does-this-django-regex-mean-p&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2017 17:36:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-does-quot-P-quot-stand-for-in-regular-expression-query/m-p/261430#M78458</guid>
      <dc:creator>bmacias84</dc:creator>
      <dc:date>2017-01-26T17:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: What does "P" stand for in regular expression query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-does-quot-P-quot-stand-for-in-regular-expression-query/m-p/261431#M78459</link>
      <description>&lt;P&gt;ty @bmacias84 that helps&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2017 19:58:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-does-quot-P-quot-stand-for-in-regular-expression-query/m-p/261431#M78459</guid>
      <dc:creator>pradjswl</dc:creator>
      <dc:date>2017-01-26T19:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: What does "P" stand for in regular expression query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-does-quot-P-quot-stand-for-in-regular-expression-query/m-p/261432#M78460</link>
      <description>&lt;P&gt;As this thread is mentioned in the current (i.e. v7.1.3) docs comment section I add some more reference.&lt;/P&gt;

&lt;P&gt;From the PCRE-Change-Log (&lt;A href="http://www.rexegg.com/pcre-doc/ChangeLog"&gt;http://www.rexegg.com/pcre-doc/ChangeLog&lt;/A&gt;) you find down the page &lt;CODE&gt;Version 7.0 19-Dec-06&lt;/CODE&gt; and in this part we have:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;34. Added a number of extra features that are going to be in Perl 5.10. On the
    whole, these are just syntactic alternatives for features that PCRE had
    previously implemented using the Python syntax or my own invention. The
    other formats are all retained for compatibility.

    (a) Named groups can now be defined as (?&amp;lt;name&amp;gt;...) or (?'name'...) as well
        as (?P&amp;lt;name&amp;gt;...). The new forms, as well as being in Perl 5.10, are
        also .NET compatible.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This seems to be the explanation closest to the origin of this construct.&lt;/P&gt;

&lt;P&gt;And from the already mentioned Python-Docs we get:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(?...)
    This is an extension notation (a '?' following a '(' is not meaningful otherwise). The first character after the '?' determines what the meaning and further syntax of the construct is. Extensions usually do not create a new group; (?P&amp;lt;name&amp;gt;...) is the only exception to this rule. Following are the currently supported extensions.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Where this "first character after the '?'" is explained in great detail in the text that follows.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Sep 2018 11:21:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-does-quot-P-quot-stand-for-in-regular-expression-query/m-p/261432#M78460</guid>
      <dc:creator>rvany</dc:creator>
      <dc:date>2018-09-17T11:21:19Z</dc:date>
    </item>
  </channel>
</rss>

