<?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, using ^ character in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Regex-help-using-character/m-p/612813#M213051</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/249391"&gt;@AttarSingh1&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Nice to hear everything works.&amp;nbsp;&lt;/P&gt;&lt;P&gt;(?m) is&amp;nbsp;the (?&amp;lt;option_flag&amp;gt;) construct allows you to set various matching properties like case-insensitivity, multiline, greedy,&lt;/P&gt;&lt;P&gt;The "m" flag is for multiline data.&lt;/P&gt;</description>
    <pubDate>Tue, 13 Sep 2022 03:57:30 GMT</pubDate>
    <dc:creator>scelikok</dc:creator>
    <dc:date>2022-09-13T03:57:30Z</dc:date>
    <item>
      <title>Regex help, using ^ character</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-help-using-character/m-p/612775#M213035</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was trying to filter some search data in splunk using regex. I was able to figure the regex part. However when I try to input into splunk, i get an error.&amp;nbsp;&lt;BR /&gt;&lt;SPAN&gt;Error in 'SearchParser': Missing a search command before '\'. Error at position '321' of search query 'search index=nessus [ search index=nessus ...{snipped} {errorcontext = &amp;lt;paths&amp;gt;^([\w]+[^\w\r\}'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Splunk command :&amp;nbsp;| rex field=pluginText (?&amp;lt;paths&amp;gt;^([\w]+[^\w\r\n]+){2}[\w]+)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;regex link :&amp;nbsp;&lt;A href="https://regex101.com/r/3jj6gF/1" target="_blank" rel="noopener"&gt;regex101: build, test, and debug regex&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2022 19:47:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-help-using-character/m-p/612775#M213035</guid>
      <dc:creator>AttarSingh1</dc:creator>
      <dc:date>2022-09-12T19:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: Regex help, using ^ character</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-help-using-character/m-p/612777#M213037</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/249391"&gt;@AttarSingh1&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;You should put the regex expression into double quotes like below;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex field=pluginText "(?&amp;lt;paths&amp;gt;^([\w]+[^\w\r\n]+){2}[\w]+)"&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 12 Sep 2022 19:51:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-help-using-character/m-p/612777#M213037</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2022-09-12T19:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: Regex help, using ^ character</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-help-using-character/m-p/612778#M213038</link>
      <description>&lt;P&gt;Thanks that did take care of the error, but my variable isnt storing value.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2022 20:01:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-help-using-character/m-p/612778#M213038</guid>
      <dc:creator>AttarSingh1</dc:creator>
      <dc:date>2022-09-12T20:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: Regex help, using ^ character</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-help-using-character/m-p/612779#M213039</link>
      <description>&lt;P&gt;Do you have any ideas on how to set regex flags /gm, in splunk. Unsure if you need to. but thats what regex101 made me do. so maybe thats the missing piece&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2022 20:04:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-help-using-character/m-p/612779#M213039</guid>
      <dc:creator>AttarSingh1</dc:creator>
      <dc:date>2022-09-12T20:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: Regex help, using ^ character</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-help-using-character/m-p/612794#M213046</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/249391"&gt;@AttarSingh1&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Please try below;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex max_match=0 field=pluginText "(?m)(?&amp;lt;paths&amp;gt;^([\w]+[^\w\r\n]+){2}[\w]+)"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2022 21:07:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-help-using-character/m-p/612794#M213046</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2022-09-12T21:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: Regex help, using ^ character</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-help-using-character/m-p/612799#M213048</link>
      <description>&lt;P&gt;can you explain what the (?m) does&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;everything works with this. thanks a bunch&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2022 21:56:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-help-using-character/m-p/612799#M213048</guid>
      <dc:creator>AttarSingh1</dc:creator>
      <dc:date>2022-09-12T21:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: Regex help, using ^ character</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-help-using-character/m-p/612813#M213051</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/249391"&gt;@AttarSingh1&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Nice to hear everything works.&amp;nbsp;&lt;/P&gt;&lt;P&gt;(?m) is&amp;nbsp;the (?&amp;lt;option_flag&amp;gt;) construct allows you to set various matching properties like case-insensitivity, multiline, greedy,&lt;/P&gt;&lt;P&gt;The "m" flag is for multiline data.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2022 03:57:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-help-using-character/m-p/612813#M213051</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2022-09-13T03:57:30Z</dc:date>
    </item>
  </channel>
</rss>

