<?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 How to extract a URL between two strings ? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-URL-between-two-strings/m-p/573525#M199857</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;I am a have content like below and i would like to extract git url from it. Please suggest me how to do it using rex?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Content:&lt;/P&gt;&lt;P&gt;&amp;nbsp; proj_url\x1B[0;m=&lt;A href="https://my.test.net/sample/test.git" target="_blank" rel="noopener"&gt;https://my.test.net/sample/test.git&lt;/A&gt; test\x1B[0;m=abcd.&lt;/P&gt;&lt;P&gt;Output should be:&amp;nbsp;&lt;A href="https://my.test.git.net/sample/test.git" target="_blank" rel="noopener"&gt;https://my.test.net/sample/test.git&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Wed, 03 Nov 2021 19:37:36 GMT</pubDate>
    <dc:creator>maramk</dc:creator>
    <dc:date>2021-11-03T19:37:36Z</dc:date>
    <item>
      <title>How to extract a URL between two strings ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-URL-between-two-strings/m-p/573525#M199857</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;I am a have content like below and i would like to extract git url from it. Please suggest me how to do it using rex?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Content:&lt;/P&gt;&lt;P&gt;&amp;nbsp; proj_url\x1B[0;m=&lt;A href="https://my.test.net/sample/test.git" target="_blank" rel="noopener"&gt;https://my.test.net/sample/test.git&lt;/A&gt; test\x1B[0;m=abcd.&lt;/P&gt;&lt;P&gt;Output should be:&amp;nbsp;&lt;A href="https://my.test.git.net/sample/test.git" target="_blank" rel="noopener"&gt;https://my.test.net/sample/test.git&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Nov 2021 19:37:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-URL-between-two-strings/m-p/573525#M199857</guid>
      <dc:creator>maramk</dc:creator>
      <dc:date>2021-11-03T19:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a URL between two strings ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-URL-between-two-strings/m-p/573529#M199860</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;..| rex "(?&amp;lt;URL&amp;gt;http\S+)"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp; OR&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;...| rex "x1B\[0\;m\=(?&amp;lt;URL&amp;gt;\S+)"&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 03 Nov 2021 20:30:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-URL-between-two-strings/m-p/573529#M199860</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2021-11-03T20:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a URL between two strings ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-URL-between-two-strings/m-p/573531#M199861</link>
      <description>&lt;P&gt;first query worked. Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 03 Nov 2021 20:36:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-URL-between-two-strings/m-p/573531#M199861</guid>
      <dc:creator>maramk</dc:creator>
      <dc:date>2021-11-03T20:36:15Z</dc:date>
    </item>
  </channel>
</rss>

