<?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 syntax clarification in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/regex-syntax-clarification/m-p/42640#M9971</link>
    <description>&lt;P&gt;Interesting! I didn't get that error but I tested on 5.0.2. Thanks for posting what worked for you!&lt;/P&gt;</description>
    <pubDate>Thu, 22 Aug 2013 02:54:22 GMT</pubDate>
    <dc:creator>jtacy</dc:creator>
    <dc:date>2013-08-22T02:54:22Z</dc:date>
    <item>
      <title>regex syntax clarification</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-syntax-clarification/m-p/42637#M9968</link>
      <description>&lt;P&gt;The following search returns results:&lt;BR /&gt;
    "context"&lt;/P&gt;

&lt;P&gt;But this one does not:&lt;BR /&gt;
    regex "context"&lt;/P&gt;

&lt;P&gt;And neither does this:&lt;BR /&gt;
    regex _raw="context"&lt;/P&gt;

&lt;P&gt;+Why not?+&lt;/P&gt;

&lt;P&gt;I am using Splunk 4.3.3 and according to &lt;A href="http://docs.splunk.com/Documentation/Splunk/4.3.3/SearchReference/Regex"&gt;http://docs.splunk.com/Documentation/Splunk/4.3.3/SearchReference/Regex&lt;/A&gt; the previous 2 are valid and should return results.&lt;/P&gt;

&lt;P&gt;I know that the word "context" is mentioned in my "_raw" field many times because I've exported a number of log events and found it there.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2013 22:59:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-syntax-clarification/m-p/42637#M9968</guid>
      <dc:creator>drapkin11</dc:creator>
      <dc:date>2013-08-21T22:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: regex syntax clarification</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-syntax-clarification/m-p/42638#M9969</link>
      <description>&lt;P&gt;I believe the regex command needs to be part of a pipeline, otherwise the search is actually going to be for the exact term that you specify. So, this probably wouldn't work:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;regex "context"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;...but this should:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| regex "context"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Please let us know if this works, thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2013 23:19:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-syntax-clarification/m-p/42638#M9969</guid>
      <dc:creator>jtacy</dc:creator>
      <dc:date>2013-08-21T23:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: regex syntax clarification</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-syntax-clarification/m-p/42639#M9970</link>
      <description>&lt;P&gt;This didn't work: | regex "context"&lt;BR /&gt;
Neither did this: * | regex "context"&lt;BR /&gt;
In both cases I got this error: Error in 'SearchOperator:regex': Usage: regex &lt;FIELD&gt; (=|!=) &lt;REGEX&gt;)&lt;/REGEX&gt;&lt;/FIELD&gt;&lt;/P&gt;

&lt;P&gt;But your answer led me to this which worked: * | regex _raw="context"&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2013 23:44:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-syntax-clarification/m-p/42639#M9970</guid>
      <dc:creator>drapkin11</dc:creator>
      <dc:date>2013-08-21T23:44:40Z</dc:date>
    </item>
    <item>
      <title>Re: regex syntax clarification</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-syntax-clarification/m-p/42640#M9971</link>
      <description>&lt;P&gt;Interesting! I didn't get that error but I tested on 5.0.2. Thanks for posting what worked for you!&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2013 02:54:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-syntax-clarification/m-p/42640#M9971</guid>
      <dc:creator>jtacy</dc:creator>
      <dc:date>2013-08-22T02:54:22Z</dc:date>
    </item>
  </channel>
</rss>

