<?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: Regex to match string between 2 strings in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Regex-to-match-string-between-2-strings/m-p/626765#M217837</link>
    <description>&lt;P&gt;Thanks for the link. I couldn't figure out how to match the 2nd value so I am looking if someone can help in fixing the regex&lt;/P&gt;</description>
    <pubDate>Wed, 11 Jan 2023 11:47:19 GMT</pubDate>
    <dc:creator>sasank</dc:creator>
    <dc:date>2023-01-11T11:47:19Z</dc:date>
    <item>
      <title>Regex to match string between 2 strings?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-to-match-string-between-2-strings/m-p/626758#M217834</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have below splunk command:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| makeresults
| eval _raw="The first value is 0.00 and The second value is 0\",\"origin\":\"rep\",\"source_instance\":\"0\""
| rex "The\sfirst\svalue\sis (?&amp;lt;from&amp;gt;.*) and\sThe\ssecond\svalue\sis (?&amp;lt;to&amp;gt;.*)"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This shows the "from" field as &lt;STRONG&gt;0.00&lt;/STRONG&gt; and "to" field as&amp;nbsp;&lt;STRONG&gt;0","origin":"rep","source_instance":"0"&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;In the "to" field I only want the value 0. How do I achieve that?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 16:33:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-to-match-string-between-2-strings/m-p/626758#M217834</guid>
      <dc:creator>sasank</dc:creator>
      <dc:date>2023-01-12T16:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: Regex to match string between 2 strings</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-to-match-string-between-2-strings/m-p/626762#M217836</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/252400"&gt;@sasank&lt;/a&gt;&amp;nbsp;Test your regex in a regex editor like&lt;/P&gt;&lt;P&gt;&lt;A href="https://regex101.com/r/1oqLAF/3" target="_blank"&gt;https://regex101.com/r/1oqLAF/3&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you follow the link you will find your test string and a regex that you can use to match the correct values.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2023 11:55:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-to-match-string-between-2-strings/m-p/626762#M217836</guid>
      <dc:creator>PaulPanther</dc:creator>
      <dc:date>2023-01-11T11:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: Regex to match string between 2 strings</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-to-match-string-between-2-strings/m-p/626765#M217837</link>
      <description>&lt;P&gt;Thanks for the link. I couldn't figure out how to match the 2nd value so I am looking if someone can help in fixing the regex&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2023 11:47:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-to-match-string-between-2-strings/m-p/626765#M217837</guid>
      <dc:creator>sasank</dc:creator>
      <dc:date>2023-01-11T11:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: Regex to match string between 2 strings</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-to-match-string-between-2-strings/m-p/626766#M217838</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/252400"&gt;@sasank&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;| makeresults&lt;BR /&gt;| eval _raw="The first value is 0.00 and The second value is 0\",\"origin\":\"rep\",\"source_instance\":\"0\""&lt;BR /&gt;| rex "The\sfirst\svalue\sis (?&amp;lt;from&amp;gt;[^\s]+).+?(?&amp;lt;to&amp;gt;\d)"&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2023 11:55:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-to-match-string-between-2-strings/m-p/626766#M217838</guid>
      <dc:creator>PaulPanther</dc:creator>
      <dc:date>2023-01-11T11:55:24Z</dc:date>
    </item>
  </channel>
</rss>

