<?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: How do I write the regular expression to extract fields separated by a backslash? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-write-the-regular-expression-to-extract-fields/m-p/222789#M65533</link>
    <description>&lt;P&gt;That error message usually means an escape character is missing.  The board messed up your regex string, however, so it's impossible to tell where the error might be.  Please re-post your entire &lt;CODE&gt;rex&lt;/CODE&gt; command by enclosing it within backtics.&lt;/P&gt;</description>
    <pubDate>Tue, 10 Nov 2015 15:01:18 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2015-11-10T15:01:18Z</dc:date>
    <item>
      <title>How do I write the regular expression to extract fields separated by a backslash?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-write-the-regular-expression-to-extract-fields/m-p/222786#M65530</link>
      <description>&lt;P&gt;Hi Community,&lt;/P&gt;

&lt;P&gt;I'm struggling with a regex expression. I'm trying to extract fields (seperated by &lt;CODE&gt;\&lt;/CODE&gt;) into the three new fields. I tried the following but with no luck:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Data: \ValueA\ValueB\ValueC\ValueD...

RegEx: rex field=InputField "\\(?&amp;lt;Output1&amp;gt;.*)\\(?&amp;lt;Output2&amp;gt;.*)\\(?&amp;lt;Output3&amp;gt;.*)\\"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 09 Nov 2015 16:26:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-write-the-regular-expression-to-extract-fields/m-p/222786#M65530</guid>
      <dc:creator>macoo</dc:creator>
      <dc:date>2015-11-09T16:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: How do I write the regular expression to extract fields separated by a backslash?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-write-the-regular-expression-to-extract-fields/m-p/222787#M65531</link>
      <description>&lt;P&gt;Regex101.com successfully parses your sample data with regex string you provided.  What results are you getting and what are you expecting?&lt;/P&gt;</description>
      <pubDate>Mon, 09 Nov 2015 17:39:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-write-the-regular-expression-to-extract-fields/m-p/222787#M65531</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2015-11-09T17:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: How do I write the regular expression to extract fields separated by a backslash?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-write-the-regular-expression-to-extract-fields/m-p/222788#M65532</link>
      <description>&lt;P&gt;Well, it works in regex101.com but fail in Splunk with the following error:&lt;/P&gt;

&lt;P&gt;Error in 'rex' command: &lt;CODE&gt;Encountered the following error while compiling the regex '\(?.*)\(?.*)\(?.*)\': Regex: unmatched parentheses&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2015 09:06:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-write-the-regular-expression-to-extract-fields/m-p/222788#M65532</guid>
      <dc:creator>macoo</dc:creator>
      <dc:date>2015-11-10T09:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: How do I write the regular expression to extract fields separated by a backslash?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-write-the-regular-expression-to-extract-fields/m-p/222789#M65533</link>
      <description>&lt;P&gt;That error message usually means an escape character is missing.  The board messed up your regex string, however, so it's impossible to tell where the error might be.  Please re-post your entire &lt;CODE&gt;rex&lt;/CODE&gt; command by enclosing it within backtics.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2015 15:01:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-write-the-regular-expression-to-extract-fields/m-p/222789#M65533</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2015-11-10T15:01:18Z</dc:date>
    </item>
  </channel>
</rss>

