<?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 regex global modifiers in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/regex-global-modifiers/m-p/257405#M77087</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I trying to execute regex in search command with g (global) m (multi-line) s (single-line).&lt;BR /&gt;
the regular way (?&lt;STRONG&gt;gms&lt;/STRONG&gt;) yields g is unknown flag, so I've tried to convert it to sed mode s/(?&lt;STRONG&gt;ms&lt;/STRONG&gt;).../replace/&lt;STRONG&gt;g&lt;/STRONG&gt;.&lt;BR /&gt;
Am I missing something?&lt;BR /&gt;
Is there another way to achieve it?&lt;/P&gt;</description>
    <pubDate>Wed, 23 Mar 2016 09:10:38 GMT</pubDate>
    <dc:creator>alon7786</dc:creator>
    <dc:date>2016-03-23T09:10:38Z</dc:date>
    <item>
      <title>regex global modifiers</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-global-modifiers/m-p/257405#M77087</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I trying to execute regex in search command with g (global) m (multi-line) s (single-line).&lt;BR /&gt;
the regular way (?&lt;STRONG&gt;gms&lt;/STRONG&gt;) yields g is unknown flag, so I've tried to convert it to sed mode s/(?&lt;STRONG&gt;ms&lt;/STRONG&gt;).../replace/&lt;STRONG&gt;g&lt;/STRONG&gt;.&lt;BR /&gt;
Am I missing something?&lt;BR /&gt;
Is there another way to achieve it?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2016 09:10:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-global-modifiers/m-p/257405#M77087</guid>
      <dc:creator>alon7786</dc:creator>
      <dc:date>2016-03-23T09:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: regex global modifiers</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-global-modifiers/m-p/257406#M77088</link>
      <description>&lt;P&gt;Instead of the &lt;STRONG&gt;g&lt;/STRONG&gt; modifier, use the &lt;CODE&gt;max_match&lt;/CODE&gt; option.  For example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex max_match=0 "(?ms)(foo)" | ...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;will find all instances of 'foo' in _raw.&lt;/P&gt;

&lt;P&gt;That said, replacing rex with sed does something very different.  What exactly are you trying to accomplish with rex?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2016 15:23:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-global-modifiers/m-p/257406#M77088</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2016-03-23T15:23:08Z</dc:date>
    </item>
  </channel>
</rss>

