<?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: search using a regex in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/search-using-a-regex/m-p/182529#M186917</link>
    <description>&lt;P&gt;I found it&lt;/P&gt;

&lt;P&gt;regex _raw="b.g"&lt;/P&gt;</description>
    <pubDate>Wed, 18 Dec 2013 03:00:08 GMT</pubDate>
    <dc:creator>alexl1</dc:creator>
    <dc:date>2013-12-18T03:00:08Z</dc:date>
    <item>
      <title>search using a regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-using-a-regex/m-p/182528#M186916</link>
      <description>&lt;P&gt;hi, if I want to find events using a regex what is the syntax?&lt;/P&gt;

&lt;P&gt;e.g if I want all events with either big or bag is there a way to use a regex like b.g&lt;/P&gt;

&lt;P&gt;thanks,&lt;/P&gt;</description>
      <pubDate>Wed, 18 Dec 2013 02:45:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-using-a-regex/m-p/182528#M186916</guid>
      <dc:creator>alexl1</dc:creator>
      <dc:date>2013-12-18T02:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: search using a regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-using-a-regex/m-p/182529#M186917</link>
      <description>&lt;P&gt;I found it&lt;/P&gt;

&lt;P&gt;regex _raw="b.g"&lt;/P&gt;</description>
      <pubDate>Wed, 18 Dec 2013 03:00:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-using-a-regex/m-p/182529#M186917</guid>
      <dc:creator>alexl1</dc:creator>
      <dc:date>2013-12-18T03:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: search using a regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-using-a-regex/m-p/182530#M186918</link>
      <description>&lt;P&gt;Actually, to find answer specific example the regex would in fact be &lt;STRONG&gt;&lt;EM&gt;"b[ai]g"&lt;/EM&gt;&lt;/STRONG&gt;.  Your example would find any combination of three printable characters starting with "b" and ending with "g", and would also return such things as &lt;EM&gt;"b-g"&lt;/EM&gt;, &lt;EM&gt;"bog"&lt;/EM&gt;, &lt;EM&gt;"b4g"&lt;/EM&gt;, etc...&lt;/P&gt;

&lt;P&gt;Furthermore, your example would match anything containing words with a similar sequence, such as &lt;EM&gt;"begin"&lt;/EM&gt;, &lt;EM&gt;"bogus"&lt;/EM&gt;, &lt;EM&gt;"abigail"&lt;/EM&gt;, etc...&lt;/P&gt;

&lt;P&gt;If you want to limit to complete words only you will need the start/end of word markers (&amp;lt; and &amp;gt;), which in the context of the config file may also require escaping with "\", as in this example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;regex _raw="\&amp;lt;b[ai]g\&amp;gt;"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 18 Dec 2013 04:09:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-using-a-regex/m-p/182530#M186918</guid>
      <dc:creator>grijhwani</dc:creator>
      <dc:date>2013-12-18T04:09:49Z</dc:date>
    </item>
  </channel>
</rss>

