<?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 Match Help! in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-regex-match/m-p/584895#M203754</link>
    <description>&lt;P&gt;I think&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;pressed Enter before complete typing. (This happened to me today, too. Something on the forum interface might be off.) &amp;nbsp;Assuming the field &lt;FONT face="courier new,courier"&gt;Job&lt;/FONT&gt; is already extracted, a usable regex would be "^\[.+\]$". &amp;nbsp;To use in rex command:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;|rex field=Job "^\[(?&amp;lt;Job_no_bracket&amp;gt;.+)\]$"&lt;/LI-CODE&gt;&lt;P&gt;If Job is not extracted and you are only interested in the part inside brackets,&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "=\[(?&amp;lt;Job_no_bracket&amp;gt;.+)\]$"&lt;/LI-CODE&gt;&lt;P&gt;This last one only works if there's nothing after&amp;nbsp;"Job=[IN-SNMMIS-DLY]]" in _raw.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 14 Feb 2022 03:58:20 GMT</pubDate>
    <dc:creator>yuanliu</dc:creator>
    <dc:date>2022-02-14T03:58:20Z</dc:date>
    <item>
      <title>How to regex match?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-regex-match/m-p/584867#M203743</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;Hi,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This is a raw log&amp;nbsp;&amp;nbsp;Job=[IN-SNMMIS-DLY]],&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I am trying to build regex just the words " IN-SNMMIS-DLY]"&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;and ignore the parenthesis&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2022 04:38:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-regex-match/m-p/584867#M203743</guid>
      <dc:creator>kc_prane</dc:creator>
      <dc:date>2022-02-16T04:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: Regex Match Help!</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-regex-match/m-p/584875#M203745</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "Job=\[(?&amp;lt;job&amp;gt;[^\]]+)\]"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Feb 2022 05:59:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-regex-match/m-p/584875#M203745</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-02-14T05:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: Regex Match Help!</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-regex-match/m-p/584895#M203754</link>
      <description>&lt;P&gt;I think&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;pressed Enter before complete typing. (This happened to me today, too. Something on the forum interface might be off.) &amp;nbsp;Assuming the field &lt;FONT face="courier new,courier"&gt;Job&lt;/FONT&gt; is already extracted, a usable regex would be "^\[.+\]$". &amp;nbsp;To use in rex command:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;|rex field=Job "^\[(?&amp;lt;Job_no_bracket&amp;gt;.+)\]$"&lt;/LI-CODE&gt;&lt;P&gt;If Job is not extracted and you are only interested in the part inside brackets,&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "=\[(?&amp;lt;Job_no_bracket&amp;gt;.+)\]$"&lt;/LI-CODE&gt;&lt;P&gt;This last one only works if there's nothing after&amp;nbsp;"Job=[IN-SNMMIS-DLY]]" in _raw.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Feb 2022 03:58:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-regex-match/m-p/584895#M203754</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2022-02-14T03:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: Regex Match Help!</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-regex-match/m-p/585251#M203881</link>
      <description>&lt;P class="lia-align-justify"&gt;Thankyou@ITWhisperer&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2022 04:35:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-regex-match/m-p/585251#M203881</guid>
      <dc:creator>kc_prane</dc:creator>
      <dc:date>2022-02-16T04:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: Regex Match Help!</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-regex-match/m-p/585252#M203882</link>
      <description>&lt;P&gt;Thanks a lot, @Yuanilu that regex worked for me.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2022 04:36:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-regex-match/m-p/585252#M203882</guid>
      <dc:creator>kc_prane</dc:creator>
      <dc:date>2022-02-16T04:36:19Z</dc:date>
    </item>
  </channel>
</rss>

