<?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/523653#M147705</link>
    <description>&lt;P&gt;Thank you for your quick response. Is it possible to expand that regex so that it picks up string without 'reg' following the '_' or '.'?&lt;/P&gt;&lt;P&gt;For example:&amp;nbsp;&lt;/P&gt;&lt;P&gt;So it would pick up:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;_20201007103200_20201007&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;zip&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;but would not pick up:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t"&gt;_20201007144100_20200416_reg&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN class="t"&gt;zip&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 08 Oct 2020 10:55:53 GMT</pubDate>
    <dc:creator>jboustead</dc:creator>
    <dc:date>2020-10-08T10:55:53Z</dc:date>
    <item>
      <title>Regex help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-help/m-p/523641#M147699</link>
      <description>&lt;P&gt;I am currently trying to use a regex to pick out the events with the date '2020XXXX' - I want the regex to search pick up any event date providing it does not have 'reg' following the '.' or '_' (pick out all the event dates below, except the first). How do I do this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Current regex: 2020\d{4}[\.\_]&lt;/P&gt;&lt;P&gt;List of different events\logs from the splunk search:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t"&gt;_20201007144100_20200416_reg&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN class="t"&gt;zip&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t"&gt;_20201007103200_20201007&lt;SPAN&gt;.&lt;/SPAN&gt;zip&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t"&gt;_20201007095000_20201007&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN class="t"&gt;zip&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t"&gt;_20201007092933_20201007&lt;SPAN&gt;.&lt;/SPAN&gt;zip&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t"&gt;_20201007061717_20201007_txn&lt;SPAN&gt;.&lt;/SPAN&gt;zip&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t"&gt;_20201007041719_20201007&lt;SPAN&gt;.&lt;/SPAN&gt;zip&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2020 10:21:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-help/m-p/523641#M147699</guid>
      <dc:creator>jboustead</dc:creator>
      <dc:date>2020-10-08T10:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: Regex help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-help/m-p/523652#M147704</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/227186"&gt;@jboustead&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;try this regex&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;your_search
| regex "_2020\d{4}_|\."
| ...&lt;/LI-CODE&gt;&lt;P&gt;that you can test at&amp;nbsp;&lt;A href="https://regex101.com/r/g82uft/1" target="_blank"&gt;https://regex101.com/r/g82uft/1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2020 10:48:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-help/m-p/523652#M147704</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-10-08T10:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: Regex help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-help/m-p/523653#M147705</link>
      <description>&lt;P&gt;Thank you for your quick response. Is it possible to expand that regex so that it picks up string without 'reg' following the '_' or '.'?&lt;/P&gt;&lt;P&gt;For example:&amp;nbsp;&lt;/P&gt;&lt;P&gt;So it would pick up:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;_20201007103200_20201007&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;zip&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;but would not pick up:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t"&gt;_20201007144100_20200416_reg&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN class="t"&gt;zip&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2020 10:55:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-help/m-p/523653#M147705</guid>
      <dc:creator>jboustead</dc:creator>
      <dc:date>2020-10-08T10:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: Regex help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-help/m-p/523655#M147706</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/227186"&gt;@jboustead&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;let me understand: do you want "&lt;SPAN&gt;_20201007103200_20201007&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;zip" and you want to exclude "&lt;SPAN class="t"&gt;_20201007144100_20200416_reg&lt;/SPAN&gt;.&lt;SPAN class="t"&gt;zip", is it correct?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="t"&gt;If this is your need, try this:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;your_search
| regex "_2020\d{4}\.zip"
| ...&lt;/LI-CODE&gt;&lt;P&gt;that you can test at&amp;nbsp;&lt;A href="https://regex101.com/r/g82uft/2" target="_blank"&gt;https://regex101.com/r/g82uft/2&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2020 11:00:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-help/m-p/523655#M147706</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-10-08T11:00:03Z</dc:date>
    </item>
    <item>
      <title>Re: Regex help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-help/m-p/523659#M147709</link>
      <description>&lt;P&gt;That is correct, however - I am also wanting to include other strings such as:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t"&gt;_20201007061717_20201007_txn&lt;SPAN&gt;.&lt;/SPAN&gt;zip&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t"&gt;_20201007092933_20201007_stl&lt;SPAN&gt;.&lt;/SPAN&gt;zip&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Basically to include any string that does not contain _reg after the date...&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2020 11:04:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-help/m-p/523659#M147709</guid>
      <dc:creator>jboustead</dc:creator>
      <dc:date>2020-10-08T11:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: Regex help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-help/m-p/523844#M147789</link>
      <description>&lt;P&gt;^_2\d*_(2)(\d*)([_\.])(?!req).*zip$&lt;BR /&gt;&lt;BR /&gt;Works for all dates before year 3000&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2020 05:31:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-help/m-p/523844#M147789</guid>
      <dc:creator>FritzWittwer</dc:creator>
      <dc:date>2020-10-09T05:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: Regex help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-help/m-p/523851#M147793</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/227186"&gt;@jboustead&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;please try (like the one hinted by&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/222118"&gt;@FritzWittwer&lt;/a&gt;) someting like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;your_search
| regex "_2020\d{4}([^\.]*)(?|reg)\.zip"
| ...&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2020 06:17:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-help/m-p/523851#M147793</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-10-09T06:17:23Z</dc:date>
    </item>
  </channel>
</rss>

