<?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 rex giving unrecognized character in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/rex-giving-unrecognized-character/m-p/447308#M126807</link>
    <description>&lt;P&gt;Regular expression&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; "ParNew:" | rex "(?i)\\), (?P[^ ]+)" | rex "(?i).*?\\((?P\\d+\\w+)(?=\\))" | rex "(?i)\\[ParNew: (?P[^\\-]+)" | rex "(?i)\\-&amp;gt;(?P[^\\(]+)" | table COLLECTION_TIME, HEAP_SIZE_AVAILABLE, OBJECT_SIZE_BEFORE_GC, OBJECT_SIZE_AFTER_GC 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;gives error in 'rex' command: Encountered the following error while compiling the regex '(?i)), (?P[^ ]+)': Regex: unrecognized character after (?P &lt;/P&gt;</description>
    <pubDate>Mon, 10 Sep 2018 11:35:45 GMT</pubDate>
    <dc:creator>shobhitdesh</dc:creator>
    <dc:date>2018-09-10T11:35:45Z</dc:date>
    <item>
      <title>rex giving unrecognized character</title>
      <link>https://community.splunk.com/t5/Splunk-Search/rex-giving-unrecognized-character/m-p/447308#M126807</link>
      <description>&lt;P&gt;Regular expression&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; "ParNew:" | rex "(?i)\\), (?P[^ ]+)" | rex "(?i).*?\\((?P\\d+\\w+)(?=\\))" | rex "(?i)\\[ParNew: (?P[^\\-]+)" | rex "(?i)\\-&amp;gt;(?P[^\\(]+)" | table COLLECTION_TIME, HEAP_SIZE_AVAILABLE, OBJECT_SIZE_BEFORE_GC, OBJECT_SIZE_AFTER_GC 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;gives error in 'rex' command: Encountered the following error while compiling the regex '(?i)), (?P[^ ]+)': Regex: unrecognized character after (?P &lt;/P&gt;</description>
      <pubDate>Mon, 10 Sep 2018 11:35:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/rex-giving-unrecognized-character/m-p/447308#M126807</guid>
      <dc:creator>shobhitdesh</dc:creator>
      <dc:date>2018-09-10T11:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: rex giving unrecognized character</title>
      <link>https://community.splunk.com/t5/Splunk-Search/rex-giving-unrecognized-character/m-p/447309#M126808</link>
      <description>&lt;P&gt;The system mangled your regex so it's difficult to see what may be wrong.&lt;BR /&gt;
Please edit or comment with the regex string inside backtick characters so it's displayed fully.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Sep 2018 12:00:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/rex-giving-unrecognized-character/m-p/447309#M126808</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2018-09-10T12:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: rex giving unrecognized character</title>
      <link>https://community.splunk.com/t5/Splunk-Search/rex-giving-unrecognized-character/m-p/447310#M126809</link>
      <description>&lt;P&gt;as @richgalloway said, the rex query got damaged.. &lt;BR /&gt;
maybe you can update a screenshot  your error when you run this cmd on screen on your splunk web GUI&lt;BR /&gt;
or, put your rex query inside backticks (&lt;CODE&gt;something&lt;/CODE&gt;)                 &lt;/P&gt;</description>
      <pubDate>Mon, 10 Sep 2018 12:54:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/rex-giving-unrecognized-character/m-p/447310#M126809</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2018-09-10T12:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: rex giving unrecognized character</title>
      <link>https://community.splunk.com/t5/Splunk-Search/rex-giving-unrecognized-character/m-p/447311#M126810</link>
      <description>&lt;P&gt;Your query should have a field name in angle brackets after the &lt;CODE&gt;(?P&lt;/CODE&gt;, and the &lt;CODE&gt;P&lt;/CODE&gt; is unneeded. ... so something like &lt;CODE&gt;(?&amp;lt;fieldname&amp;gt;.*)&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Sep 2018 13:36:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/rex-giving-unrecognized-character/m-p/447311#M126810</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2018-09-10T13:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: rex giving unrecognized character</title>
      <link>https://community.splunk.com/t5/Splunk-Search/rex-giving-unrecognized-character/m-p/447312#M126811</link>
      <description>&lt;P&gt;hi @shobhitdesh&lt;/P&gt;

&lt;P&gt;Did any of the answers or comments below solve your problem? If so, please resolve this post by approving it! &lt;/P&gt;

&lt;P&gt;If your problem is still not solved, keep us updated so that someone else can help ya.&lt;/P&gt;

&lt;P&gt;Thanks for posting!&lt;/P&gt;</description>
      <pubDate>Mon, 10 Sep 2018 20:32:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/rex-giving-unrecognized-character/m-p/447312#M126811</guid>
      <dc:creator>mstjohn_splunk</dc:creator>
      <dc:date>2018-09-10T20:32:12Z</dc:date>
    </item>
  </channel>
</rss>

