<?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 not working as expected in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Regex-not-working-as-expected/m-p/470419#M132356</link>
    <description>&lt;P&gt;Can you elaborate what you mean by "same regex is not working on Splunk"? &lt;/P&gt;

&lt;P&gt;One problem may be that you are not using any names for the groups, so Splunk does not know what to name the field.&lt;/P&gt;

&lt;P&gt;Also, if you need multiple matches, try using the max_match option.&lt;/P&gt;</description>
    <pubDate>Tue, 03 Sep 2019 12:31:23 GMT</pubDate>
    <dc:creator>KARANMALHOTRA</dc:creator>
    <dc:date>2019-09-03T12:31:23Z</dc:date>
    <item>
      <title>Regex not working as expected</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-not-working-as-expected/m-p/470417#M132354</link>
      <description>&lt;P&gt;For one of the Security usecase, we need to extract Group Memberships from the Domain.  The trickier part is some of the Group Memberships doesnt have domain name in front of it.&lt;/P&gt;

&lt;P&gt;I am attaching the Regex link which is working fine on Regex101- &lt;/P&gt;

&lt;P&gt;&lt;A href="https://regex101.com/r/X2YAAd/1"&gt;https://regex101.com/r/X2YAAd/1&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;but for some strange reasons, when i use the same regex on Splunk its not working.&lt;/P&gt;

&lt;P&gt;This is to extract Group membership on EventCode=&lt;STRONG&gt;4627&lt;/STRONG&gt; &lt;/P&gt;

&lt;P&gt;Could anyone help me here.. &lt;/P&gt;</description>
      <pubDate>Mon, 02 Sep 2019 22:40:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-not-working-as-expected/m-p/470417#M132354</guid>
      <dc:creator>cyber_castle</dc:creator>
      <dc:date>2019-09-02T22:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: Regex not working as expected</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-not-working-as-expected/m-p/470418#M132355</link>
      <description>&lt;P&gt;Always set the RegEx engine to Python. Also try to set &lt;CODE&gt;(?ms)&lt;/CODE&gt; in front, that should do.&lt;/P&gt;

&lt;P&gt;Skalli&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2019 07:05:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-not-working-as-expected/m-p/470418#M132355</guid>
      <dc:creator>skalliger</dc:creator>
      <dc:date>2019-09-03T07:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: Regex not working as expected</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-not-working-as-expected/m-p/470419#M132356</link>
      <description>&lt;P&gt;Can you elaborate what you mean by "same regex is not working on Splunk"? &lt;/P&gt;

&lt;P&gt;One problem may be that you are not using any names for the groups, so Splunk does not know what to name the field.&lt;/P&gt;

&lt;P&gt;Also, if you need multiple matches, try using the max_match option.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2019 12:31:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-not-working-as-expected/m-p/470419#M132356</guid>
      <dc:creator>KARANMALHOTRA</dc:creator>
      <dc:date>2019-09-03T12:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: Regex not working as expected</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-not-working-as-expected/m-p/470420#M132357</link>
      <description>&lt;P&gt;Hello I have tried with the capturing group and still no luck &lt;/P&gt;

&lt;P&gt;&lt;A href="https://regex101.com/r/X2YAAd/2"&gt;https://regex101.com/r/X2YAAd/2&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2019 12:35:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-not-working-as-expected/m-p/470420#M132357</guid>
      <dc:creator>cyber_castle</dc:creator>
      <dc:date>2019-09-04T12:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: Regex not working as expected</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-not-working-as-expected/m-p/470421#M132358</link>
      <description>&lt;P&gt;Ahh.. i have always used PCRE. When I have changed to python its blank.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2019 12:36:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-not-working-as-expected/m-p/470421#M132358</guid>
      <dc:creator>cyber_castle</dc:creator>
      <dc:date>2019-09-04T12:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: Regex not working as expected</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-not-working-as-expected/m-p/470422#M132359</link>
      <description>&lt;P&gt;The &lt;A href="https://regex101.com/r/X2YAAd/1"&gt;https://regex101.com/r/X2YAAd/1&lt;/A&gt; of your original post works for me when adding &lt;CODE&gt;(?ms)&lt;/CODE&gt; at the beginning and using Python. Did you try that in Splunk?&lt;/P&gt;

&lt;P&gt;Skalli&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2019 17:54:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-not-working-as-expected/m-p/470422#M132359</guid>
      <dc:creator>skalliger</dc:creator>
      <dc:date>2019-09-04T17:54:38Z</dc:date>
    </item>
  </channel>
</rss>

