<?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: Search for multiple apperances of a pattern in a field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Search-for-multiple-apperances-of-a-pattern-in-a-field/m-p/595794#M207371</link>
    <description>&lt;P&gt;Have you even tried it?&lt;/P&gt;&lt;P&gt;Due to the way splunk escapes backslash in regex expressions, you need 4 backslashes to match a single backslash in the field, therefore 8 backslashes (as I have used), will find anything more than 1 in the field.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| eval _raw="cmd.exe c:\\windows\\\\\\\\\\\\\\\\sytem32\\[...]
cmd.exe c:\\\\windows\\\\sytem32\\\\[...]
cmd.exe c:\\windows\\sytem32\\[...]"
| multikv noheader=t
| regex _raw="\\\\\\\\"&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 28 Apr 2022 14:29:54 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2022-04-28T14:29:54Z</dc:date>
    <item>
      <title>Search for multiple apperances of a pattern in a field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-for-multiple-apperances-of-a-pattern-in-a-field/m-p/595789#M207368</link>
      <description>&lt;P&gt;Hi, is there a way to search for more than one appearance of a pattern in a string?&lt;BR /&gt;&lt;BR /&gt;For example:&lt;BR /&gt;Command&lt;BR /&gt;cmd.exe &lt;SPAN&gt;c:\windows\\\\\\\\sytem32\[...]&lt;BR /&gt;cmd.exe c:\windows\sytem32\[...]&lt;BR /&gt;&lt;BR /&gt;I would want to search for rows with more than single consecutive "\" , in case of above only first row to be returned.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 13:50:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-for-multiple-apperances-of-a-pattern-in-a-field/m-p/595789#M207368</guid>
      <dc:creator>KMoryson</dc:creator>
      <dc:date>2022-04-28T13:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: Search for multiple apperances of a pattern in a field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-for-multiple-apperances-of-a-pattern-in-a-field/m-p/595790#M207369</link>
      <description>&lt;LI-CODE lang="markup"&gt;| regex _raw="\\\\\\\\"&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 28 Apr 2022 13:57:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-for-multiple-apperances-of-a-pattern-in-a-field/m-p/595790#M207369</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-04-28T13:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: Search for multiple apperances of a pattern in a field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-for-multiple-apperances-of-a-pattern-in-a-field/m-p/595791#M207370</link>
      <description>&lt;P&gt;This only matches to this specific amount of backslashes, I want to match for any number above one&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 14:04:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-for-multiple-apperances-of-a-pattern-in-a-field/m-p/595791#M207370</guid>
      <dc:creator>KMoryson</dc:creator>
      <dc:date>2022-04-28T14:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: Search for multiple apperances of a pattern in a field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-for-multiple-apperances-of-a-pattern-in-a-field/m-p/595794#M207371</link>
      <description>&lt;P&gt;Have you even tried it?&lt;/P&gt;&lt;P&gt;Due to the way splunk escapes backslash in regex expressions, you need 4 backslashes to match a single backslash in the field, therefore 8 backslashes (as I have used), will find anything more than 1 in the field.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| eval _raw="cmd.exe c:\\windows\\\\\\\\\\\\\\\\sytem32\\[...]
cmd.exe c:\\\\windows\\\\sytem32\\\\[...]
cmd.exe c:\\windows\\sytem32\\[...]"
| multikv noheader=t
| regex _raw="\\\\\\\\"&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 28 Apr 2022 14:29:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-for-multiple-apperances-of-a-pattern-in-a-field/m-p/595794#M207371</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-04-28T14:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: Search for multiple apperances of a pattern in a field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-for-multiple-apperances-of-a-pattern-in-a-field/m-p/595795#M207372</link>
      <description>&lt;P&gt;So sorry, you are right, this works wonderfully, thank you for help&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 14:36:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-for-multiple-apperances-of-a-pattern-in-a-field/m-p/595795#M207372</guid>
      <dc:creator>KMoryson</dc:creator>
      <dc:date>2022-04-28T14:36:40Z</dc:date>
    </item>
  </channel>
</rss>

