<?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: regex (Invalid regex: no named extraction at position 5 ) in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/regex-Invalid-regex-no-named-extraction-at-position-5/m-p/143295#M39790</link>
    <description>&lt;P&gt;The forward slash needs to be escaped.&lt;/P&gt;

&lt;P&gt;You have nested capturing groups.  Is that intentional?&lt;/P&gt;</description>
    <pubDate>Thu, 12 Feb 2015 15:24:02 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2015-02-12T15:24:02Z</dc:date>
    <item>
      <title>regex (Invalid regex: no named extraction at position 5 )</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-Invalid-regex-no-named-extraction-at-position-5/m-p/143292#M39787</link>
      <description>&lt;P&gt;I have problem with saving regex for extracting class name&lt;BR /&gt;
Here is my regex&lt;BR /&gt;&lt;BR /&gt;
(?i)\[([0-9a-zA-Z\.\s\-]&amp;amp;ast;(\[[0-9]&amp;amp;ast;\])?[0-9a-zA-Z\.\s\-\/]&amp;amp;ast;)\]\s(?P&amp;lt;FIELDNAME&amp;gt;[^ ]+) &lt;/P&gt;

&lt;P&gt;And here is log sample &lt;BR /&gt;
12.02.2015 12:14:16.946 &lt;EM&gt;INFO&lt;/EM&gt; [10.36.27.187 [1423743256597] GET /content/company/global/en/company/notices/polish.html HTTP/1.1] &lt;STRONG&gt;com.company.web.core.cdn.CDNTransformer CDN&lt;/STRONG&gt;: &lt;A href="http://static-dc.company.net"&gt;http://static-dc.company.net&lt;/A&gt;&lt;BR /&gt;
12.02.2015 14:17:03.340 &lt;EM&gt;INFO&lt;/EM&gt; [pool-5-thread-3] &lt;STRONG&gt;org.apache.jackrabbit.core.state.SharedItemStateManager&lt;/STRONG&gt; Validating change-set hierarchy&lt;/P&gt;

&lt;P&gt;And here is splunk error &lt;BR /&gt;
"Invalid regex: no named extraction at position 5 (i.e., "[([0-9a-zA..."). Expected "(?P&amp;lt;variable&amp;gt;pattern)""&lt;/P&gt;</description>
      <pubDate>Thu, 12 Feb 2015 14:56:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-Invalid-regex-no-named-extraction-at-position-5/m-p/143292#M39787</guid>
      <dc:creator>broman</dc:creator>
      <dc:date>2015-02-12T14:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: regex (Invalid regex: no named extraction at position 5 )</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-Invalid-regex-no-named-extraction-at-position-5/m-p/143293#M39788</link>
      <description>&lt;P&gt;You'll need to fix the formatting on your regex so it displays properly in the browser; we can't read it as is.  Edit your question and substitute &amp;amp; # 92; (with no spaces) for all the backslashes.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Feb 2015 15:00:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-Invalid-regex-no-named-extraction-at-position-5/m-p/143293#M39788</guid>
      <dc:creator>cphair</dc:creator>
      <dc:date>2015-02-12T15:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: regex (Invalid regex: no named extraction at position 5 )</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-Invalid-regex-no-named-extraction-at-position-5/m-p/143294#M39789</link>
      <description>&lt;P&gt;done, thanks for notice &lt;/P&gt;</description>
      <pubDate>Thu, 12 Feb 2015 15:16:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-Invalid-regex-no-named-extraction-at-position-5/m-p/143294#M39789</guid>
      <dc:creator>broman</dc:creator>
      <dc:date>2015-02-12T15:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: regex (Invalid regex: no named extraction at position 5 )</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-Invalid-regex-no-named-extraction-at-position-5/m-p/143295#M39790</link>
      <description>&lt;P&gt;The forward slash needs to be escaped.&lt;/P&gt;

&lt;P&gt;You have nested capturing groups.  Is that intentional?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Feb 2015 15:24:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-Invalid-regex-no-named-extraction-at-position-5/m-p/143295#M39790</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2015-02-12T15:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: regex (Invalid regex: no named extraction at position 5 )</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-Invalid-regex-no-named-extraction-at-position-5/m-p/143296#M39791</link>
      <description>&lt;P&gt;in some log lines I have nested [] so I try to handle this in regex.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Feb 2015 15:28:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-Invalid-regex-no-named-extraction-at-position-5/m-p/143296#M39791</guid>
      <dc:creator>broman</dc:creator>
      <dc:date>2015-02-12T15:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: regex (Invalid regex: no named extraction at position 5 )</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-Invalid-regex-no-named-extraction-at-position-5/m-p/143297#M39792</link>
      <description>&lt;P&gt;This regex string works with your example log entries on regex101.com.  It also handles nested brackets.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;\[.*\]\s(?P&amp;lt;FIELDNAME&amp;gt;[^ ]+)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 12 Feb 2015 15:35:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-Invalid-regex-no-named-extraction-at-position-5/m-p/143297#M39792</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2015-02-12T15:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: regex (Invalid regex: no named extraction at position 5 )</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-Invalid-regex-no-named-extraction-at-position-5/m-p/143298#M39793</link>
      <description>&lt;P&gt;Thanks &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 12 Feb 2015 15:38:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-Invalid-regex-no-named-extraction-at-position-5/m-p/143298#M39793</guid>
      <dc:creator>broman</dc:creator>
      <dc:date>2015-02-12T15:38:36Z</dc:date>
    </item>
  </channel>
</rss>

