<?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: Any regex masters out there? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Any-regex-masters-out-there/m-p/349131#M103355</link>
    <description>&lt;P&gt;yes just the user names&lt;/P&gt;</description>
    <pubDate>Wed, 08 Mar 2017 23:03:16 GMT</pubDate>
    <dc:creator>tkwaller</dc:creator>
    <dc:date>2017-03-08T23:03:16Z</dc:date>
    <item>
      <title>Any regex masters out there?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Any-regex-masters-out-there/m-p/349128#M103352</link>
      <description>&lt;P&gt;Working on a regex for a script log. Need to pull out user:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;User accounts for \\
-------------------------------------------------------------------------------
Administrator            Guest                    SMSNomadP2P&amp;amp;            
The command completed with one or more errors.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Would work for the first account but wont grab the rest&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;-\s(?&amp;lt;field1&amp;gt;\S+)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any ideas?&lt;BR /&gt;
Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2017 22:10:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Any-regex-masters-out-there/m-p/349128#M103352</guid>
      <dc:creator>tkwaller</dc:creator>
      <dc:date>2017-03-08T22:10:16Z</dc:date>
    </item>
    <item>
      <title>Re: Any regex masters out there?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Any-regex-masters-out-there/m-p/349129#M103353</link>
      <description>&lt;P&gt;What values you wan to capture, Administrator, Guest, SMSNomadP2P&amp;amp; or all?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2017 22:30:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Any-regex-masters-out-there/m-p/349129#M103353</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-03-08T22:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: Any regex masters out there?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Any-regex-masters-out-there/m-p/349130#M103354</link>
      <description>&lt;P&gt;Once you remove that hyphen off the front, that regex matches each of them, according to regex101.com.  Your regex depends on there being a whitespace character immediately before the value you are trying to pull.  Check to validate that there is one.  Can you show us what the entire line of data looks like?  &lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2017 22:43:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Any-regex-masters-out-there/m-p/349130#M103354</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-03-08T22:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: Any regex masters out there?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Any-regex-masters-out-there/m-p/349131#M103355</link>
      <description>&lt;P&gt;yes just the user names&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2017 23:03:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Any-regex-masters-out-there/m-p/349131#M103355</guid>
      <dc:creator>tkwaller</dc:creator>
      <dc:date>2017-03-08T23:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: Any regex masters out there?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Any-regex-masters-out-there/m-p/349132#M103356</link>
      <description>&lt;P&gt;That IS the entire log, nothing more to show. If you remove the hypen it matches much more than the account names according to regex101.com, I used the hypen to match the beginning.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2017 23:09:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Any-regex-masters-out-there/m-p/349132#M103356</guid>
      <dc:creator>tkwaller</dc:creator>
      <dc:date>2017-03-08T23:09:29Z</dc:date>
    </item>
    <item>
      <title>Re: Any regex masters out there?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Any-regex-masters-out-there/m-p/349133#M103357</link>
      <description>&lt;P&gt;That was pretty tough; try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(?ms)(?&amp;lt;=[\r\n]|\s{2})(?&amp;lt;field1&amp;gt;[^\r\n\s\-]+)(?=.*[\r\n])
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This captures every username, regardless of how many appear, as a multi-valued field.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2017 23:41:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Any-regex-masters-out-there/m-p/349133#M103357</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-03-08T23:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: Any regex masters out there?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Any-regex-masters-out-there/m-p/349134#M103358</link>
      <description>&lt;P&gt;ah, so it's a single multi-line returned value, and you only want the line immediately after the line of hyphens.  Got it.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2017 05:32:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Any-regex-masters-out-there/m-p/349134#M103358</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-03-09T05:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: Any regex masters out there?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Any-regex-masters-out-there/m-p/349135#M103359</link>
      <description>&lt;P&gt;Awesome. Another thing to consider: If you use this in a rex command, you might need to set the max_match parameter to something other than 1.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2017 13:04:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Any-regex-masters-out-there/m-p/349135#M103359</guid>
      <dc:creator>adauria_splunk</dc:creator>
      <dc:date>2017-03-09T13:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: Any regex masters out there?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Any-regex-masters-out-there/m-p/349136#M103360</link>
      <description>&lt;P&gt;@woodcock Nice work man, I banged my head on this one for a while before posting here and quite a while after.&lt;BR /&gt;
+1000 points for that work man, I appreciate it greatly&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2017 13:18:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Any-regex-masters-out-there/m-p/349136#M103360</guid>
      <dc:creator>tkwaller</dc:creator>
      <dc:date>2017-03-09T13:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: Any regex masters out there?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Any-regex-masters-out-there/m-p/349137#M103361</link>
      <description>&lt;P&gt;btw threw that in a transform and added mv_add = true then updated props......good to go&lt;BR /&gt;
Thanks again&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2017 15:25:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Any-regex-masters-out-there/m-p/349137#M103361</guid>
      <dc:creator>tkwaller</dc:creator>
      <dc:date>2017-03-09T15:25:16Z</dc:date>
    </item>
  </channel>
</rss>

