<?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: Does SEDCMD use PCRE regular expressions? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Does-SEDCMD-use-PCRE-regular-expressions/m-p/9964#M328</link>
    <description>&lt;P&gt;SEDCMD uses PCRE regex and thus is equivalent to sed -r&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;props.conf.spec
SEDCMD-&amp;lt;class&amp;gt; = &amp;lt;sed script&amp;gt;
....
* Syntax:
 * replace    - s/regex/replacement/flags
  * where regex is a perl regex (optionally containing capturing groups)
  * replacement is a string to replace the regex match, use \N for backreferences
  * flags can be either: g to replace all matches or a number to replace a specified match
 * substitute - y/string1/string2/
  * substitutes the string1[i] with string2[i]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 16 Mar 2010 05:25:03 GMT</pubDate>
    <dc:creator>Ledion_Bitincka</dc:creator>
    <dc:date>2010-03-16T05:25:03Z</dc:date>
    <item>
      <title>Does SEDCMD use PCRE regular expressions?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Does-SEDCMD-use-PCRE-regular-expressions/m-p/9963#M327</link>
      <description>&lt;P&gt;I know that in general, regular expressions in Splunk use PCRE (or a modified PCRE for matching in props.conf source stanza headings). If I set SEDCMD in props.conf, e.g.:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SEDCMD-example = s/regex/subst/g
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;is the &lt;CODE&gt;regex&lt;/CODE&gt; also PCRE? Standard &lt;CODE&gt;sed&lt;/CODE&gt; uses &lt;CODE&gt;grep&lt;/CODE&gt; or &lt;CODE&gt;egrep&lt;/CODE&gt; regexes, not PCRE, so this isn't entirely clear.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2010 23:45:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Does-SEDCMD-use-PCRE-regular-expressions/m-p/9963#M327</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-03-03T23:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: Does SEDCMD use PCRE regular expressions?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Does-SEDCMD-use-PCRE-regular-expressions/m-p/9964#M328</link>
      <description>&lt;P&gt;SEDCMD uses PCRE regex and thus is equivalent to sed -r&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;props.conf.spec
SEDCMD-&amp;lt;class&amp;gt; = &amp;lt;sed script&amp;gt;
....
* Syntax:
 * replace    - s/regex/replacement/flags
  * where regex is a perl regex (optionally containing capturing groups)
  * replacement is a string to replace the regex match, use \N for backreferences
  * flags can be either: g to replace all matches or a number to replace a specified match
 * substitute - y/string1/string2/
  * substitutes the string1[i] with string2[i]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 16 Mar 2010 05:25:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Does-SEDCMD-use-PCRE-regular-expressions/m-p/9964#M328</guid>
      <dc:creator>Ledion_Bitincka</dc:creator>
      <dc:date>2010-03-16T05:25:03Z</dc:date>
    </item>
  </channel>
</rss>

