<?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: Interactive Field Extraction (regex) in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Interactive-Field-Extraction-regex/m-p/106987#M27825</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;Can you tell me if i and P are exactly typed like this or you substituted field names in here?&lt;/P&gt;

&lt;P&gt;Thinking this (with changes) may be my answer&lt;/P&gt;</description>
    <pubDate>Thu, 08 Aug 2013 04:27:38 GMT</pubDate>
    <dc:creator>suepfarrell</dc:creator>
    <dc:date>2013-08-08T04:27:38Z</dc:date>
    <item>
      <title>Interactive Field Extraction (regex)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Interactive-Field-Extraction-regex/m-p/106985#M27823</link>
      <description>&lt;P&gt;I have my data here &lt;A href="http://pastebin.com/98zg3tRX"&gt;Xml Data&lt;/A&gt;, I need to extract using Splunk IFX, Generated pattern (regex). &lt;/P&gt;

&lt;P&gt;Example 1: &lt;MESSAGE&gt;(22/7)19:55 Accident on ECP (towards Changi Airport) after Maxwell Rd Entrance. Avoid lane 1.&lt;A href="https://answers.splunk.comd:Message"&gt;/d:Message&lt;/A&gt;&lt;BR /&gt;
Example 2: &lt;MESSAGE&gt;(22/7)14:29 Accident on ECP (towards Changi Airport) before Fort Rd Exit. Avoid lane 5.&lt;A href="https://answers.splunk.comd:Message"&gt;/d:Message&lt;/A&gt;&lt;BR /&gt;
Example 3: &lt;MESSAGE&gt;(19/7)15:19 Accident on PIE (towards Changi Airport) before Paya Lebar Rd with congestion till Kallang Way. Avoid lane 5.&lt;A href="https://answers.splunk.comd:Message"&gt;/d:Message&lt;/A&gt;&lt;/MESSAGE&gt;&lt;/MESSAGE&gt;&lt;/MESSAGE&gt;&lt;/P&gt;

&lt;P&gt;Help 1: I need to extract the express-way exits on the word &lt;STRONG&gt;after&lt;/STRONG&gt; and stops at &lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Help 2: I need to extract the express-way exits on the word &lt;STRONG&gt;before&lt;/STRONG&gt; and stops at &lt;STRONG&gt;Exit&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Help 3: I need to extract the express-way exits on the word &lt;STRONG&gt;before&lt;/STRONG&gt; and stops at &lt;STRONG&gt;with&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;There are still a lot of examples in the &lt;A href="http://pastebin.com/98zg3tRX"&gt;Xml Data&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;I did  &lt;STRONG&gt;&lt;CODE&gt;(?i) before (?P&amp;lt;wordafter&amp;gt;.[^\.]*?Exit)&lt;/CODE&gt;&lt;/STRONG&gt; , this extracts the Fort Rd Exit (Example 2), this extract only before, how can I extract &lt;STRONG&gt;after&lt;/STRONG&gt; ? together with this expression.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2013 03:01:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Interactive-Field-Extraction-regex/m-p/106985#M27823</guid>
      <dc:creator>sbnoobbb</dc:creator>
      <dc:date>2013-07-26T03:01:22Z</dc:date>
    </item>
    <item>
      <title>Re: Interactive Field Extraction (regex)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Interactive-Field-Extraction-regex/m-p/106986#M27824</link>
      <description>&lt;P&gt;After hours of trying, solved by (?i) (?P&lt;AFTERBEFORE&gt;at|after|before) (?P&lt;WORDAFTER&gt;[^.]*?(?P&lt;DUMMY&gt;Exit.|Rd.|Entrance.|Ave.|Avenue.|North.|[1-9].|BKE.|SLE.|CTE.|ECP.|KJE.|TPE.|PIE.|AYE.))&lt;/DUMMY&gt;&lt;/WORDAFTER&gt;&lt;/AFTERBEFORE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2013 08:55:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Interactive-Field-Extraction-regex/m-p/106986#M27824</guid>
      <dc:creator>sbnoobbb</dc:creator>
      <dc:date>2013-07-26T08:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: Interactive Field Extraction (regex)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Interactive-Field-Extraction-regex/m-p/106987#M27825</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;Can you tell me if i and P are exactly typed like this or you substituted field names in here?&lt;/P&gt;

&lt;P&gt;Thinking this (with changes) may be my answer&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2013 04:27:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Interactive-Field-Extraction-regex/m-p/106987#M27825</guid>
      <dc:creator>suepfarrell</dc:creator>
      <dc:date>2013-08-08T04:27:38Z</dc:date>
    </item>
  </channel>
</rss>

