<?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: Can you help me understand the syntax of this rex feld and where such commands are used? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-understand-the-syntax-of-this-rex-feld-and-where/m-p/369331#M108808</link>
    <description>&lt;PRE&gt;&lt;CODE&gt;rex field=GB"(?&amp;lt;gb&amp;gt;[^]+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 02 Jan 2018 10:54:38 GMT</pubDate>
    <dc:creator>maheshsat</dc:creator>
    <dc:date>2018-01-02T10:54:38Z</dc:date>
    <item>
      <title>Can you help me understand the syntax of this rex feld and where such commands are used?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-understand-the-syntax-of-this-rex-feld-and-where/m-p/369328#M108805</link>
      <description>&lt;P&gt;rex field=GB"(?[^]+)"&lt;/P&gt;

&lt;P&gt;Hi Team, can any help me to understand each syntax in above command and also would like to know where such commands are used&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2018 03:03:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-understand-the-syntax-of-this-rex-feld-and-where/m-p/369328#M108805</guid>
      <dc:creator>maheshsat</dc:creator>
      <dc:date>2018-01-02T03:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me understand the syntax of this rex feld and where such commands are used?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-understand-the-syntax-of-this-rex-feld-and-where/m-p/369329#M108806</link>
      <description>&lt;P&gt;Make sure you have the correct SPL string, and use the code sample button in the editor to post it here to include all special chars.&lt;/P&gt;

&lt;P&gt;As it's readable in your current question there are several syntax issues.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2018 09:56:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-understand-the-syntax-of-this-rex-feld-and-where/m-p/369329#M108806</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2018-01-02T09:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me understand the syntax of this rex feld and where such commands are used?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-understand-the-syntax-of-this-rex-feld-and-where/m-p/369330#M108807</link>
      <description>&lt;P&gt;please use &lt;CODE&gt;101010&lt;/CODE&gt; and type your rex query there.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2018 10:10:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-understand-the-syntax-of-this-rex-feld-and-where/m-p/369330#M108807</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-01-02T10:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me understand the syntax of this rex feld and where such commands are used?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-understand-the-syntax-of-this-rex-feld-and-where/m-p/369331#M108808</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;rex field=GB"(?&amp;lt;gb&amp;gt;[^]+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 02 Jan 2018 10:54:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-understand-the-syntax-of-this-rex-feld-and-where/m-p/369331#M108808</guid>
      <dc:creator>maheshsat</dc:creator>
      <dc:date>2018-01-02T10:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me understand the syntax of this rex feld and where such commands are used?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-understand-the-syntax-of-this-rex-feld-and-where/m-p/369332#M108809</link>
      <description>&lt;P&gt;&lt;CODE&gt;rex&lt;/CODE&gt;: the command for inline field extractions, see &lt;A href="http://docs.splunk.com/Documentation/Splunk/7.0.1/SearchReference/rex"&gt;http://docs.splunk.com/Documentation/Splunk/7.0.1/SearchReference/rex&lt;/A&gt;&lt;BR /&gt;
&lt;CODE&gt;field=GB&lt;/CODE&gt;: use that field to extract from&lt;BR /&gt;
&lt;CODE&gt;()&lt;/CODE&gt;: regex capturing group&lt;BR /&gt;
&lt;CODE&gt;?&amp;lt;gb&amp;gt;&lt;/CODE&gt;: name the group &lt;CODE&gt;gb&lt;/CODE&gt;, resulting in a field called &lt;CODE&gt;gb&lt;/CODE&gt;&lt;BR /&gt;
&lt;CODE&gt;[]&lt;/CODE&gt;: regex character class&lt;BR /&gt;
&lt;CODE&gt;^&lt;/CODE&gt;: negates whatever is after the &lt;CODE&gt;^&lt;/CODE&gt; in the character class, this is missing in your example. If it were &lt;CODE&gt;[^a]&lt;/CODE&gt;, this would match every character except an &lt;CODE&gt;a&lt;/CODE&gt;&lt;BR /&gt;
&lt;CODE&gt;+&lt;/CODE&gt;: one or more matches&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2018 11:06:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-understand-the-syntax-of-this-rex-feld-and-where/m-p/369332#M108809</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2018-01-02T11:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me understand the syntax of this rex feld and where such commands are used?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-understand-the-syntax-of-this-rex-feld-and-where/m-p/369333#M108810</link>
      <description>&lt;P&gt;Hi @maheshsat,&lt;BR /&gt;
you can check below splunk docs to understand regular expressions syntax.&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.0.1/Knowledge/AboutSplunkregularexpressions"&gt;https://docs.splunk.com/Documentation/Splunk/7.0.1/Knowledge/AboutSplunkregularexpressions&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2018 12:02:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-understand-the-syntax-of-this-rex-feld-and-where/m-p/369333#M108810</guid>
      <dc:creator>nikita_p</dc:creator>
      <dc:date>2018-01-02T12:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me understand the syntax of this rex feld and where such commands are used?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-understand-the-syntax-of-this-rex-feld-and-where/m-p/369334#M108811</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;Term    Description Example Explanation
*   Match zero or more times.   \w* Matches zero or more word characters.
+   Match one or more times.    \d+ Match at least one digit.
 ?  Match zero or one time. \d\d\d-?\d\d-?\d\d\d\d  Matches a Social Security Number with or without dashes.
( ) Parentheses define match or capture groups, atomic groups, and lookarounds. (H..).(o..) When given the string Hello World, this matches Hel and o W.
[ ] Square brackets define character classes.   [a-z0-9#]   Matches any character that is a through z, 0 through 9, or #.
{ } Curly brackets define repetitions.  \d{3,5} Matches a string of 3 to 5 digits in length.
&amp;lt; &amp;gt; Angle brackets define named capture groups. Use the syntax (?P&amp;lt;var&amp;gt; ...) to set up a named field extraction.    (?P&amp;lt;ssn&amp;gt;\d\d\d-\d\d-\d\d\d\d)   Pulls out a Social Security Number and assigns it to the ssn field.
[[ ]]   Double brackets define Splunk-specific modular regular expressions. [[octet]]   A validated 0-255 range integer.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Also refer this link where you can learn and write regex for specific events&lt;BR /&gt;
&lt;A href="https://regex101.com/"&gt;https://regex101.com/&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Let me know if this helps you!&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2018 12:25:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-understand-the-syntax-of-this-rex-feld-and-where/m-p/369334#M108811</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-01-02T12:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me understand the syntax of this rex feld and where such commands are used?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-understand-the-syntax-of-this-rex-feld-and-where/m-p/369335#M108812</link>
      <description>&lt;P&gt;Thank everyone for helping me&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2018 14:17:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-understand-the-syntax-of-this-rex-feld-and-where/m-p/369335#M108812</guid>
      <dc:creator>maheshsat</dc:creator>
      <dc:date>2018-01-02T14:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me understand the syntax of this rex feld and where such commands are used?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-understand-the-syntax-of-this-rex-feld-and-where/m-p/369336#M108813</link>
      <description>&lt;P&gt;@maheshsat, if your problem is resolved, please accept an answer to help future readers.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2018 14:39:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-understand-the-syntax-of-this-rex-feld-and-where/m-p/369336#M108813</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2018-01-02T14:39:26Z</dc:date>
    </item>
  </channel>
</rss>

