<?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 help! in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Regex-help/m-p/203379#M59099</link>
    <description>&lt;P&gt;Hi kranthi851,&lt;/P&gt;

&lt;P&gt;try this regex:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; your base search here | rex max_match=0 "cn=(?&amp;lt;myNewField&amp;gt;[^,]+)" | do more here ....
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The new field will be called &lt;CODE&gt;myNewField&lt;/CODE&gt; just change it to what fits your use case.&lt;/P&gt;

&lt;P&gt;Hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
    <pubDate>Tue, 02 Aug 2016 21:34:16 GMT</pubDate>
    <dc:creator>MuS</dc:creator>
    <dc:date>2016-08-02T21:34:16Z</dc:date>
    <item>
      <title>Regex help!</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-help/m-p/203378#M59098</link>
      <description>&lt;P&gt;Hi &lt;BR /&gt;
How can i extract a dn  from the following result.&lt;/P&gt;

&lt;P&gt;identity:&lt;BR /&gt;
acd123&lt;BR /&gt;
cn=abc,ou=..,ou=.., &lt;BR /&gt;
xyz234&lt;BR /&gt;
cn=acd,ou=abc,...&lt;/P&gt;

&lt;P&gt;I need to extract a new field dn with values starting with cn=.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2016 21:29:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-help/m-p/203378#M59098</guid>
      <dc:creator>kranthi851</dc:creator>
      <dc:date>2016-08-02T21:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: Regex help!</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-help/m-p/203379#M59099</link>
      <description>&lt;P&gt;Hi kranthi851,&lt;/P&gt;

&lt;P&gt;try this regex:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; your base search here | rex max_match=0 "cn=(?&amp;lt;myNewField&amp;gt;[^,]+)" | do more here ....
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The new field will be called &lt;CODE&gt;myNewField&lt;/CODE&gt; just change it to what fits your use case.&lt;/P&gt;

&lt;P&gt;Hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2016 21:34:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-help/m-p/203379#M59099</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2016-08-02T21:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: Regex help!</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-help/m-p/203380#M59100</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search here | extract pairdelim="," kvdelim="=" | table cn ou 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 02 Aug 2016 21:44:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-help/m-p/203380#M59100</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-08-02T21:44:05Z</dc:date>
    </item>
  </channel>
</rss>

