<?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: Can you help me with the following  regex expression? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-with-the-following-regex-expression/m-p/451578#M127891</link>
    <description>&lt;P&gt;Hi @zacksoft,&lt;BR /&gt;
Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|rex max_match=0 "(?&amp;lt;a&amp;gt;[^']+)\'\s*raced to road"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 24 Oct 2018 12:54:31 GMT</pubDate>
    <dc:creator>493669</dc:creator>
    <dc:date>2018-10-24T12:54:31Z</dc:date>
    <item>
      <title>Can you help me with the following  regex expression?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-with-the-following-regex-expression/m-p/451576#M127889</link>
      <description>&lt;P&gt;I have events from which I need to extract the strings that fall before the string "raced to road"&lt;/P&gt;

&lt;P&gt;Here is a sample event:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;'com.pyxis.greengoblin.phutan' - 'PhutanAgile'  raced to road.
            Error creating bean with name 'sampleDataGeneratorImpl' defined in URL [bundle://187.0:1/com/bsassian/greengoblin/sampledata/SampleDataGeneratorImpl.class]:
It was loaded from /bsahare/bsaassian/application-data/jirabiz/plugins/installed-plugins/plugin.8763102878749631573.loovytuner-5.5.28.jar    
        'com.bsa.phutan.plugins.bsa-development-integration-blogin' - 'Bsassian Phutan - blogins - Development Integration blogin'  raced to road.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The Strings that need to be extracted in the above sample events are 'PhutanAgile' and 'Bsassian Phutan - blogins - Development Integration blogin'&lt;/P&gt;</description>
      <pubDate>Wed, 24 Oct 2018 11:51:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-with-the-following-regex-expression/m-p/451576#M127889</guid>
      <dc:creator>zacksoft</dc:creator>
      <dc:date>2018-10-24T11:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me with the following  regex expression?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-with-the-following-regex-expression/m-p/451577#M127890</link>
      <description>&lt;P&gt;Something like this?&lt;/P&gt;

&lt;P&gt;.+?(?=raced to road)&lt;/P&gt;

&lt;P&gt;&lt;A href="https://regex101.com/r/0A66nK/1"&gt;https://regex101.com/r/0A66nK/1&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Oct 2018 12:11:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-with-the-following-regex-expression/m-p/451577#M127890</guid>
      <dc:creator>Azeemering</dc:creator>
      <dc:date>2018-10-24T12:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me with the following  regex expression?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-with-the-following-regex-expression/m-p/451578#M127891</link>
      <description>&lt;P&gt;Hi @zacksoft,&lt;BR /&gt;
Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|rex max_match=0 "(?&amp;lt;a&amp;gt;[^']+)\'\s*raced to road"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 24 Oct 2018 12:54:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-with-the-following-regex-expression/m-p/451578#M127891</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2018-10-24T12:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me with the following  regex expression?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-with-the-following-regex-expression/m-p/451579#M127892</link>
      <description>&lt;P&gt;Almost, but he doesn't want the entire string, just the bit in between &lt;CODE&gt;'&lt;/CODE&gt; right in front of "raced to road".&lt;/P&gt;

&lt;P&gt;So it should be: &lt;CODE&gt;[^\']+?(?=\'\s+raced to road)&lt;/CODE&gt;&lt;BR /&gt;
&lt;A href="https://regex101.com/r/0A66nK/2"&gt;https://regex101.com/r/0A66nK/2&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;But the solution presented by @493669 seems to be a lot more efficient (factor 30 in steps reported by regex101).&lt;/P&gt;</description>
      <pubDate>Wed, 24 Oct 2018 13:24:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-with-the-following-regex-expression/m-p/451579#M127892</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-10-24T13:24:32Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me with the following  regex expression?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-with-the-following-regex-expression/m-p/451580#M127893</link>
      <description>&lt;P&gt;The simplistic &lt;CODE&gt;(.*)raced to road.&lt;/CODE&gt; extracts it ; - ) &lt;/P&gt;</description>
      <pubDate>Wed, 24 Oct 2018 13:55:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-with-the-following-regex-expression/m-p/451580#M127893</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2018-10-24T13:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me with the following  regex expression?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-with-the-following-regex-expression/m-p/451581#M127894</link>
      <description>&lt;P&gt;@493669   Thanks for the help. Where is the extracted string getting stored.  I need to use the extracted string in a table command.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Oct 2018 14:28:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-with-the-following-regex-expression/m-p/451581#M127894</guid>
      <dc:creator>zacksoft</dc:creator>
      <dc:date>2018-10-24T14:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me with the following  regex expression?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-with-the-following-regex-expression/m-p/451582#M127895</link>
      <description>&lt;P&gt;field is extracted in fieldname &lt;CODE&gt;a&lt;/CODE&gt; you can change as per your need to show it in table&lt;/P&gt;</description>
      <pubDate>Wed, 24 Oct 2018 14:46:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-with-the-following-regex-expression/m-p/451582#M127895</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2018-10-24T14:46:03Z</dc:date>
    </item>
  </channel>
</rss>

