<?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 Regex for string between to delimeters in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Regex-for-string-between-to-delimeters/m-p/697737#M236995</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Thank you for your help on this in advance,&amp;nbsp; I just need to create a field in Splunk Search that contains the value between 2 delimiters.&amp;nbsp; &amp;nbsp; The delimiter is "?".&amp;nbsp; For example.&lt;/P&gt;&lt;P&gt;Athena.siteone.com?suvathp001?443&lt;/P&gt;&lt;P&gt;What would be the regex to only extract suvathp001&lt;/P&gt;&lt;P&gt;Thanks again for your help,&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 29 Aug 2024 16:57:37 GMT</pubDate>
    <dc:creator>mninansplunk</dc:creator>
    <dc:date>2024-08-29T16:57:37Z</dc:date>
    <item>
      <title>Regex for string between to delimeters</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-for-string-between-to-delimeters/m-p/697737#M236995</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Thank you for your help on this in advance,&amp;nbsp; I just need to create a field in Splunk Search that contains the value between 2 delimiters.&amp;nbsp; &amp;nbsp; The delimiter is "?".&amp;nbsp; For example.&lt;/P&gt;&lt;P&gt;Athena.siteone.com?suvathp001?443&lt;/P&gt;&lt;P&gt;What would be the regex to only extract suvathp001&lt;/P&gt;&lt;P&gt;Thanks again for your help,&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2024 16:57:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-for-string-between-to-delimeters/m-p/697737#M236995</guid>
      <dc:creator>mninansplunk</dc:creator>
      <dc:date>2024-08-29T16:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: Regex for string between to delimeters</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-for-string-between-to-delimeters/m-p/697740#M236996</link>
      <description>&lt;P&gt;The general form for that regex is "&lt;FONT face="courier new,courier"&gt;&amp;lt;&amp;lt;delimiter&amp;gt;&amp;gt;(?&amp;lt;field&amp;gt;[^&amp;lt;&amp;lt;delimiter&amp;gt;&amp;gt;]+)&lt;/FONT&gt;".&amp;nbsp; In this case, the delimiter is a regex special character so escaping is needed.&amp;nbsp; Try this command:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "\?(?&amp;lt;field&amp;gt;[^\?]+)"&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 29 Aug 2024 17:45:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-for-string-between-to-delimeters/m-p/697740#M236996</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2024-08-29T17:45:56Z</dc:date>
    </item>
  </channel>
</rss>

