<?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 return which includes a specific text in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Regex-to-return-which-includes-a-specific-text/m-p/58003#M14167</link>
    <description>&lt;P&gt;When I try and execute your regex command I receive the error Mismatched ']'. Do you receive that error, or is there a typo in your post?&lt;/P&gt;

&lt;P&gt;If you are getting the mismatched ] error, you probably need to escape the " character. So your regex command would become &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | regex uri="(?i)Chaser(?:[^\"])"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Dave&lt;/P&gt;</description>
    <pubDate>Mon, 09 Sep 2013 16:35:14 GMT</pubDate>
    <dc:creator>davebrooking</dc:creator>
    <dc:date>2013-09-09T16:35:14Z</dc:date>
    <item>
      <title>Regex to return which includes a specific text</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-to-return-which-includes-a-specific-text/m-p/58002#M14166</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am planning to capture all the URIs with word chaser (case in sensitive).&lt;/P&gt;

&lt;P&gt;I have used this&lt;BR /&gt;
| regex uri="(?i)Chaser(?:[^\"])"&lt;/P&gt;

&lt;P&gt;but did not get any results. do i need to include anything in the regex? &lt;BR /&gt;
Thanks for your help. &lt;/P&gt;

&lt;P&gt;Below are few examples. &lt;/P&gt;

&lt;P&gt;/gdfgfd/N-/Ntt-MILWAUKEEFUEL?pm_sp=CS_Chaser-&lt;EM&gt;-PO_L3_Multi-&lt;/EM&gt;-werwerdfg&lt;BR /&gt;
/CHASER-STAKES-rOutdoor-brother-Retractable-6trJ3?we_sp=IO-&lt;EM&gt;-PDI-&lt;/EM&gt;-RR_VTV70300505&amp;amp;cm_vc=WSPRRZ1&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:44:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-to-return-which-includes-a-specific-text/m-p/58002#M14166</guid>
      <dc:creator>xvxt006</dc:creator>
      <dc:date>2020-09-28T14:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: Regex to return which includes a specific text</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-to-return-which-includes-a-specific-text/m-p/58003#M14167</link>
      <description>&lt;P&gt;When I try and execute your regex command I receive the error Mismatched ']'. Do you receive that error, or is there a typo in your post?&lt;/P&gt;

&lt;P&gt;If you are getting the mismatched ] error, you probably need to escape the " character. So your regex command would become &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | regex uri="(?i)Chaser(?:[^\"])"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Dave&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2013 16:35:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-to-return-which-includes-a-specific-text/m-p/58003#M14167</guid>
      <dc:creator>davebrooking</dc:creator>
      <dc:date>2013-09-09T16:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: Regex to return which includes a specific text</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-to-return-which-includes-a-specific-text/m-p/58004#M14168</link>
      <description>&lt;P&gt;Yes your are right Dave. it was a type. &lt;/P&gt;

&lt;P&gt;i tried that regex which you suggested still not getting any data.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2013 16:43:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-to-return-which-includes-a-specific-text/m-p/58004#M14168</guid>
      <dc:creator>xvxt006</dc:creator>
      <dc:date>2013-09-09T16:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: Regex to return which includes a specific text</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-to-return-which-includes-a-specific-text/m-p/58005#M14169</link>
      <description>&lt;P&gt;the uri have - in them do you think regex would catch those characters as well?&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2013 16:43:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-to-return-which-includes-a-specific-text/m-p/58005#M14169</guid>
      <dc:creator>xvxt006</dc:creator>
      <dc:date>2013-09-09T16:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: Regex to return which includes a specific text</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-to-return-which-includes-a-specific-text/m-p/58006#M14170</link>
      <description>&lt;P&gt;I'm a little confused. Do you have a field called uri in the events, or are you trying to extract a field from the events and name that uri?&lt;/P&gt;

&lt;P&gt;Would either of these satisfy your needs?&lt;/P&gt;

&lt;P&gt;In the rex command you need to remove the space before and after uri&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex "(?i)(?P&amp;lt; uri &amp;gt;/\S*Chaser\S*)" 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| regex uri="(?i)/\S*Chaser\S*"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Dave&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2013 17:24:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-to-return-which-includes-a-specific-text/m-p/58006#M14170</guid>
      <dc:creator>davebrooking</dc:creator>
      <dc:date>2013-09-09T17:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: Regex to return which includes a specific text</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-to-return-which-includes-a-specific-text/m-p/58007#M14171</link>
      <description>&lt;P&gt;Hi Dave,&lt;/P&gt;

&lt;P&gt;I have field called uri and i want to get all the uri which contains "Chaser" in the uri filed. i want the regex. I tried regex uri="(?i)/\S*Chaser\S*" but did not work&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:44:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-to-return-which-includes-a-specific-text/m-p/58007#M14171</guid>
      <dc:creator>xvxt006</dc:creator>
      <dc:date>2020-09-28T14:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: Regex to return which includes a specific text</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-to-return-which-includes-a-specific-text/m-p/58008#M14172</link>
      <description>&lt;P&gt;This is a duplicate question. An accepted answer may be found here: &lt;A href="http://answers.splunk.com/answers/101946/regex-to-capture-uris-with-a-particular-word"&gt;http://answers.splunk.com/answers/101946/regex-to-capture-uris-with-a-particular-word&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2013 11:53:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-to-return-which-includes-a-specific-text/m-p/58008#M14172</guid>
      <dc:creator>rturk</dc:creator>
      <dc:date>2013-09-10T11:53:27Z</dc:date>
    </item>
  </channel>
</rss>

