<?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: How to extract a string that starts with certain words or letters? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-string-that-starts-with-certain-words-or/m-p/360230#M106497</link>
    <description>&lt;PRE&gt;&lt;CODE&gt;mySearch|rex field=_raw "(?&amp;lt;"myField"&amp;gt;Start.*End)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 17 Mar 2017 18:53:46 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2017-03-17T18:53:46Z</dc:date>
    <item>
      <title>How to extract a string that starts with certain words or letters?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-string-that-starts-with-certain-words-or/m-p/360229#M106496</link>
      <description>&lt;P&gt;I'd like to use rex to extract the event string that starts with certain words or letters, possibly ends with certain words or letters. For example I have a event string like "blah blah blah Start  blah blah blah End".&lt;/P&gt;

&lt;P&gt;I can do something like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;mySearch|rex field=_raw "Start(?&amp;lt;"myField"&amp;gt;.*)End"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I want my result not only "myField" but also including "Start" and "End". How can I do it?&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2017 18:09:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-string-that-starts-with-certain-words-or/m-p/360229#M106496</guid>
      <dc:creator>harry521</dc:creator>
      <dc:date>2017-03-17T18:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a string that starts with certain words or letters?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-string-that-starts-with-certain-words-or/m-p/360230#M106497</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;mySearch|rex field=_raw "(?&amp;lt;"myField"&amp;gt;Start.*End)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 17 Mar 2017 18:53:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-string-that-starts-with-certain-words-or/m-p/360230#M106497</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2017-03-17T18:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a string that starts with certain words or letters?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-string-that-starts-with-certain-words-or/m-p/360231#M106498</link>
      <description>&lt;P&gt;Something in the spirit of -&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval _raw="Start 999 End"
| rex field=_raw "(?&amp;lt;aaa&amp;gt;Start \d* End)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 17 Mar 2017 18:54:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-string-that-starts-with-certain-words-or/m-p/360231#M106498</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2017-03-17T18:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a string that starts with certain words or letters?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-string-that-starts-with-certain-words-or/m-p/360232#M106499</link>
      <description>&lt;P&gt;you just move the parenthesis to be around whatever you want to capture.  &lt;/P&gt;

&lt;P&gt;Then you can go over to regex101.com and test to make sure you got it right.  (Over there, you leave off the quotes and occasionally some character-escaping you had to do in splunk.)&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2017 19:09:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-string-that-starts-with-certain-words-or/m-p/360232#M106499</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-03-17T19:09:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a string that starts with certain words or letters?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-string-that-starts-with-certain-words-or/m-p/360233#M106500</link>
      <description>&lt;P&gt;I guess I didn't make myself clear. The end result I'd like to show is "Start &amp;lt;"myField"&amp;gt; End" from the original one.  I end up with a "dirty" way to implement it as using "eval result=Start.&amp;lt;"myField"&amp;gt;.End" to concatenate the strings after extracting myField. &lt;/P&gt;

&lt;P&gt;Another way to explain what I want to achieve is to get rid of anything before "Start", and after "End". &lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2017 19:54:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-string-that-starts-with-certain-words-or/m-p/360233#M106500</guid>
      <dc:creator>harry521</dc:creator>
      <dc:date>2017-03-17T19:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a string that starts with certain words or letters?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-string-that-starts-with-certain-words-or/m-p/360234#M106501</link>
      <description>&lt;P&gt;Is this a trick question?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; mySearch | rex field=_raw "(?&amp;lt;myField&amp;gt;Start.*End)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 19 Mar 2017 03:47:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-string-that-starts-with-certain-words-or/m-p/360234#M106501</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-03-19T03:47:50Z</dc:date>
    </item>
  </channel>
</rss>

