<?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: help in a regular expression extraction in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/help-in-a-regular-expression-extraction/m-p/40771#M9417</link>
    <description>&lt;P&gt;It's working great thank you guys&lt;/P&gt;</description>
    <pubDate>Wed, 21 Aug 2013 20:54:34 GMT</pubDate>
    <dc:creator>royimad</dc:creator>
    <dc:date>2013-08-21T20:54:34Z</dc:date>
    <item>
      <title>help in a regular expression extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-in-a-regular-expression-extraction/m-p/40763#M9409</link>
      <description>&lt;P&gt;I have a text that contains anything followed by a word that start with either &lt;BR /&gt;
XPOS, POS and HF and ended by - &lt;/P&gt;

&lt;P&gt;Example:&lt;BR /&gt;
ABC  XPOS2024 - &lt;BR /&gt;
DEF  POS340903 -&lt;BR /&gt;
GHI  HF3948329 - &lt;BR /&gt;
...&lt;/P&gt;

&lt;P&gt;How to extract XPOS2024 , POS340903 , HF3948329 using regular expression?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2013 16:23:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-in-a-regular-expression-extraction/m-p/40763#M9409</guid>
      <dc:creator>royimad</dc:creator>
      <dc:date>2013-08-20T16:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: help in a regular expression extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-in-a-regular-expression-extraction/m-p/40764#M9410</link>
      <description>&lt;P&gt;try this on the search : (and remove the underscored, they are here to trick the html formatting)&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&lt;BR /&gt;
 * | rex "(?&amp;lt;myfield&amp;gt;(XPOS|POS|HF)\d+)" | table myfield&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2013 17:00:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-in-a-regular-expression-extraction/m-p/40764#M9410</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2013-08-20T17:00:28Z</dc:date>
    </item>
    <item>
      <title>Re: help in a regular expression extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-in-a-regular-expression-extraction/m-p/40765#M9411</link>
      <description>&lt;P&gt;Error in 'rex' command: Encountered the following error while compiling the regex '?&lt;MYFIELD&gt;(XPOS|POS|HF)\d+)': Regex: nothing to repeat&lt;/MYFIELD&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2013 10:20:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-in-a-regular-expression-extraction/m-p/40765#M9411</guid>
      <dc:creator>royimad</dc:creator>
      <dc:date>2013-08-21T10:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: help in a regular expression extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-in-a-regular-expression-extraction/m-p/40766#M9412</link>
      <description>&lt;P&gt;I'm receiving this error&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2013 10:20:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-in-a-regular-expression-extraction/m-p/40766#M9412</guid>
      <dc:creator>royimad</dc:creator>
      <dc:date>2013-08-21T10:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: help in a regular expression extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-in-a-regular-expression-extraction/m-p/40767#M9413</link>
      <description>&lt;P&gt;it seems that this isn't working&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2013 10:20:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-in-a-regular-expression-extraction/m-p/40767#M9413</guid>
      <dc:creator>royimad</dc:creator>
      <dc:date>2013-08-21T10:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: help in a regular expression extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-in-a-regular-expression-extraction/m-p/40768#M9414</link>
      <description>&lt;P&gt;&lt;CODE&gt;* | rex "(?&amp;lt;myfield&amp;gt;(XPOS|POS|HF)\d+)" | table myfield&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2013 10:25:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-in-a-regular-expression-extraction/m-p/40768#M9414</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-08-21T10:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: help in a regular expression extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-in-a-regular-expression-extraction/m-p/40769#M9415</link>
      <description>&lt;P&gt;You may try below regex as well:&lt;BR /&gt;
"(?:)[^ ]+ +(?P&lt;FIELD&gt;(XPOS|POS|HF)[^ ]+) +-"&lt;/FIELD&gt;&lt;/P&gt;

&lt;P&gt;If it does not work please let me know.&lt;/P&gt;

&lt;P&gt;Regards,&lt;BR /&gt;
Disha&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2013 10:55:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-in-a-regular-expression-extraction/m-p/40769#M9415</guid>
      <dc:creator>dishasaxena</dc:creator>
      <dc:date>2013-08-21T10:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: help in a regular expression extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-in-a-regular-expression-extraction/m-p/40770#M9416</link>
      <description>&lt;P&gt;Thanks Åynm I had a missing parenthesis.&lt;/P&gt;

&lt;P&gt;And if the characters after are not always digits, disha's regex is perfect.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2013 16:42:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-in-a-regular-expression-extraction/m-p/40770#M9416</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2013-08-21T16:42:19Z</dc:date>
    </item>
    <item>
      <title>Re: help in a regular expression extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-in-a-regular-expression-extraction/m-p/40771#M9417</link>
      <description>&lt;P&gt;It's working great thank you guys&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2013 20:54:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-in-a-regular-expression-extraction/m-p/40771#M9417</guid>
      <dc:creator>royimad</dc:creator>
      <dc:date>2013-08-21T20:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: help in a regular expression extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-in-a-regular-expression-extraction/m-p/40772#M9418</link>
      <description>&lt;P&gt;Thanks man&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2013 20:54:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-in-a-regular-expression-extraction/m-p/40772#M9418</guid>
      <dc:creator>royimad</dc:creator>
      <dc:date>2013-08-21T20:54:45Z</dc:date>
    </item>
  </channel>
</rss>

