<?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: regular expression to extract lines of text between two different texts in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/regular-expression-to-extract-lines-of-text-between-two/m-p/583892#M203341</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/242831"&gt;@satya671&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults 
| eval _raw="afadfadfadf
afadsfagafg

adfafafa

string1 .........

afjal;dkfhao ilhaf

ajkf;haldghag;lakg

akuhfajkdhfalkfha;

auhaghkajdgakg

jkalfagafg

string2.........

afdasdgadfas" 
| rex "string1(?&amp;lt;extracted&amp;gt;(.|\n)*?)string2" 
| table extracted&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could try this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 07 Feb 2022 05:30:30 GMT</pubDate>
    <dc:creator>venkatasri</dc:creator>
    <dc:date>2022-02-07T05:30:30Z</dc:date>
    <item>
      <title>regular expression to extract lines of text between two different texts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regular-expression-to-extract-lines-of-text-between-two/m-p/583891#M203340</link>
      <description>&lt;P&gt;suppose i had data like below field="_raw"&lt;/P&gt;&lt;P&gt;afadfadfadf&lt;/P&gt;&lt;P&gt;afadsfagafg&lt;/P&gt;&lt;P&gt;adfafafa&lt;/P&gt;&lt;P&gt;string1 .........&lt;/P&gt;&lt;P&gt;afjal;dkfhao ilhaf&lt;/P&gt;&lt;P&gt;ajkf;haldghag;lakg&lt;/P&gt;&lt;P&gt;akuhfajkdhfalkfha;&lt;/P&gt;&lt;P&gt;auhaghkajdgakg&lt;/P&gt;&lt;P&gt;jkalfagafg&lt;/P&gt;&lt;P&gt;string2.........&lt;/P&gt;&lt;P&gt;afdasdgadfas&lt;/P&gt;&lt;P&gt;**bleep**adgafgafgaf&lt;/P&gt;&lt;P&gt;agfgertfergreg&lt;/P&gt;&lt;P&gt;And i want to extract the data in between string1 and string2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Feb 2022 05:00:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regular-expression-to-extract-lines-of-text-between-two/m-p/583891#M203340</guid>
      <dc:creator>satya671</dc:creator>
      <dc:date>2022-02-07T05:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: regular expression to extract lines of text between two different texts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regular-expression-to-extract-lines-of-text-between-two/m-p/583892#M203341</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/242831"&gt;@satya671&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults 
| eval _raw="afadfadfadf
afadsfagafg

adfafafa

string1 .........

afjal;dkfhao ilhaf

ajkf;haldghag;lakg

akuhfajkdhfalkfha;

auhaghkajdgakg

jkalfagafg

string2.........

afdasdgadfas" 
| rex "string1(?&amp;lt;extracted&amp;gt;(.|\n)*?)string2" 
| table extracted&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could try this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Feb 2022 05:30:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regular-expression-to-extract-lines-of-text-between-two/m-p/583892#M203341</guid>
      <dc:creator>venkatasri</dc:creator>
      <dc:date>2022-02-07T05:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: regular expression to extract lines of text between two different texts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regular-expression-to-extract-lines-of-text-between-two/m-p/583897#M203343</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/163730"&gt;@venkatasri&lt;/a&gt;&amp;nbsp; it's working as expected &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Feb 2022 06:19:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regular-expression-to-extract-lines-of-text-between-two/m-p/583897#M203343</guid>
      <dc:creator>satya671</dc:creator>
      <dc:date>2022-02-07T06:19:20Z</dc:date>
    </item>
  </channel>
</rss>

