<?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 use Regex to find values between two strings in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-Regex-to-find-values-between-two-strings/m-p/256746#M76903</link>
    <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex max_match=0 "\&amp;lt;f\:Cell\&amp;gt;(?&amp;lt;cellvalue&amp;gt;[^\&amp;lt;]+)\&amp;lt;\/f\:Cell\&amp;gt;" | table cellvalue | mvexpand cellvalue | ...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 11 Jul 2016 18:07:07 GMT</pubDate>
    <dc:creator>sundareshr</dc:creator>
    <dc:date>2016-07-11T18:07:07Z</dc:date>
    <item>
      <title>How to use Regex to find values between two strings</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-Regex-to-find-values-between-two-strings/m-p/256744#M76901</link>
      <description>&lt;P&gt;I have this event:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;f:Table&amp;gt;&amp;lt;f:Row&amp;gt;&amp;lt;f:Cell&amp;gt;IE Group Policy&amp;lt;/f:Cell&amp;gt;&amp;lt;/f:Row&amp;gt;&amp;lt;f:Row&amp;gt;&amp;lt;f:Cell&amp;gt;HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\SecureProtocols&amp;lt;/f:Cell&amp;gt;&amp;lt;/f:Row&amp;gt;&amp;lt;f:Row&amp;gt;&amp;lt;f:Cell&amp;gt;Windows SChannel&amp;lt;/f:Cell&amp;gt;&amp;lt;/f:Row&amp;gt;&amp;lt;f:Row&amp;gt;&amp;lt;f:Cell&amp;gt;HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL 3.0\Client\Enabled&amp;lt;/f:Cell&amp;gt;&amp;lt;/f:Row&amp;gt;&amp;lt;f:Row&amp;gt;&amp;lt;f:Cell&amp;gt;IE&amp;lt;/f:Cell&amp;gt;&amp;lt;/f:Row&amp;gt;&amp;lt;f:Row&amp;gt;&amp;lt;f:Cell&amp;gt;HKEY_USERS\Software\Microsoft\Windows\CurrentVersion\Internet Settings\SecureProtocols&amp;lt;/f:Cell&amp;gt;&amp;lt;/f:Row&amp;gt;&amp;lt;f:Row&amp;gt;&amp;lt;f:Cell&amp;gt;KB3009008&amp;lt;/f:Cell&amp;gt;&amp;lt;/f:Row&amp;gt;&amp;lt;/f:Table&amp;gt; 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and I have other events like this.  I want to extract the information between the &lt;CODE&gt;&amp;lt;f:Cell&amp;gt;&amp;lt;/f:Cell&amp;gt;&lt;/CODE&gt; in this event, there are several entries, but in most, there is only one entry.  How can I get this to work in all cases?&lt;/P&gt;

&lt;P&gt;Help With Regex Please&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2016 18:03:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-Regex-to-find-values-between-two-strings/m-p/256744#M76901</guid>
      <dc:creator>hartfoml</dc:creator>
      <dc:date>2016-07-11T18:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Regex to find values between two strings</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-Regex-to-find-values-between-two-strings/m-p/256745#M76902</link>
      <description>&lt;P&gt;Here ya go.. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(?&amp;lt;=\&amp;lt;f\:Cell\&amp;gt;).*(?=\&amp;lt;\/f\:Cell\&amp;gt;)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you're doing it at index time then it will look like this &lt;CODE&gt;(?P&amp;lt;FieldName&amp;gt;(?&amp;lt;=\&amp;lt;f\:Cell\&amp;gt;).*(?=\&amp;lt;\/f\:Cell\&amp;gt;))&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;This uses a lookbehind to sink into  and a lookahead to sink into &amp;lt;\f:Cell&amp;gt; &lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2016 18:06:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-Regex-to-find-values-between-two-strings/m-p/256745#M76902</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2016-07-11T18:06:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Regex to find values between two strings</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-Regex-to-find-values-between-two-strings/m-p/256746#M76903</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex max_match=0 "\&amp;lt;f\:Cell\&amp;gt;(?&amp;lt;cellvalue&amp;gt;[^\&amp;lt;]+)\&amp;lt;\/f\:Cell\&amp;gt;" | table cellvalue | mvexpand cellvalue | ...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 Jul 2016 18:07:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-Regex-to-find-values-between-two-strings/m-p/256746#M76903</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-07-11T18:07:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Regex to find values between two strings</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-Regex-to-find-values-between-two-strings/m-p/256747#M76904</link>
      <description>&lt;P&gt;Thanks this works great&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2016 18:26:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-Regex-to-find-values-between-two-strings/m-p/256747#M76904</guid>
      <dc:creator>hartfoml</dc:creator>
      <dc:date>2016-07-11T18:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Regex to find values between two strings</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-Regex-to-find-values-between-two-strings/m-p/553732#M157220</link>
      <description>&lt;P&gt;There is single events which contains multiple conversationid:"conv_abc" workgroup, conversations:"conv_xyz" workgroup. I have to find all values between conversationid and workgroup which are in single event. I had tries one Rex but it giving content between first conversationid and last workgroup string&lt;/P&gt;</description>
      <pubDate>Mon, 31 May 2021 16:12:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-Regex-to-find-values-between-two-strings/m-p/553732#M157220</guid>
      <dc:creator>maheshkk444</dc:creator>
      <dc:date>2021-05-31T16:12:30Z</dc:date>
    </item>
  </channel>
</rss>

