<?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 What Is Purpose Of Leading P Argument In Field Extraction Regex? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/What-Is-Purpose-Of-Leading-P-Argument-In-Field-Extraction-Regex/m-p/79057#M20005</link>
    <description>&lt;P&gt;When extracting a field using a regex, what does the P argument do (the P character between the question mark and the field name)?  I have seen examples with and without this argument, but I don't see any obvious difference in the results.  For example:&lt;BR /&gt;
(?i) Finished (?P&lt;FIELDNAME&gt;.+)&lt;BR /&gt;
versus&lt;BR /&gt;
(?i) Finished (?&lt;FIELDNAME&gt;.+)&lt;/FIELDNAME&gt;&lt;/FIELDNAME&gt;&lt;/P&gt;

&lt;P&gt;I looked in the Splunk manual and on the Answers site but couldn't find any description of this argument.  Apologies if I'm missing something obvious.&lt;/P&gt;</description>
    <pubDate>Tue, 19 Jun 2012 23:38:24 GMT</pubDate>
    <dc:creator>psmith3</dc:creator>
    <dc:date>2012-06-19T23:38:24Z</dc:date>
    <item>
      <title>What Is Purpose Of Leading P Argument In Field Extraction Regex?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-Is-Purpose-Of-Leading-P-Argument-In-Field-Extraction-Regex/m-p/79057#M20005</link>
      <description>&lt;P&gt;When extracting a field using a regex, what does the P argument do (the P character between the question mark and the field name)?  I have seen examples with and without this argument, but I don't see any obvious difference in the results.  For example:&lt;BR /&gt;
(?i) Finished (?P&lt;FIELDNAME&gt;.+)&lt;BR /&gt;
versus&lt;BR /&gt;
(?i) Finished (?&lt;FIELDNAME&gt;.+)&lt;/FIELDNAME&gt;&lt;/FIELDNAME&gt;&lt;/P&gt;

&lt;P&gt;I looked in the Splunk manual and on the Answers site but couldn't find any description of this argument.  Apologies if I'm missing something obvious.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jun 2012 23:38:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-Is-Purpose-Of-Leading-P-Argument-In-Field-Extraction-Regex/m-p/79057#M20005</guid>
      <dc:creator>psmith3</dc:creator>
      <dc:date>2012-06-19T23:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: What Is Purpose Of Leading P Argument In Field Extraction Regex?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-Is-Purpose-Of-Leading-P-Argument-In-Field-Extraction-Regex/m-p/79058#M20006</link>
      <description>&lt;P&gt;The P was part of the syntax when Python first introduced the idea of naming a capture in regular expressions. However, the P is &lt;EM&gt;not&lt;/EM&gt; part of the syntax in some other flavors of regular expressions, most notably Microsoft .NET.&lt;/P&gt;

&lt;P&gt;Splunk supports the syntax both ways.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jun 2012 23:52:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-Is-Purpose-Of-Leading-P-Argument-In-Field-Extraction-Regex/m-p/79058#M20006</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2012-06-19T23:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: What Is Purpose Of Leading P Argument In Field Extraction Regex?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-Is-Purpose-Of-Leading-P-Argument-In-Field-Extraction-Regex/m-p/79059#M20007</link>
      <description>&lt;P&gt;Great - thanks for the quick response!&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jun 2012 01:02:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-Is-Purpose-Of-Leading-P-Argument-In-Field-Extraction-Regex/m-p/79059#M20007</guid>
      <dc:creator>psmith3</dc:creator>
      <dc:date>2012-06-20T01:02:35Z</dc:date>
    </item>
  </channel>
</rss>

