<?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 How can I extract string between highlighted fields with regex? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-string-between-highlighted-fields-with-regex/m-p/321160#M95944</link>
    <description>&lt;P&gt;Error:   Update failed. First exception on row 0 with id abcd; first error: INVALID_EMAIL_ADDRESS, Email: &lt;STRONG&gt;invalid email address&lt;/STRONG&gt;: jrwils@secuamp;gt;: &lt;STRONG&gt;[Email]&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 16:22:27 GMT</pubDate>
    <dc:creator>vik123ash</dc:creator>
    <dc:date>2020-09-29T16:22:27Z</dc:date>
    <item>
      <title>How can I extract string between highlighted fields with regex?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-string-between-highlighted-fields-with-regex/m-p/321160#M95944</link>
      <description>&lt;P&gt;Error:   Update failed. First exception on row 0 with id abcd; first error: INVALID_EMAIL_ADDRESS, Email: &lt;STRONG&gt;invalid email address&lt;/STRONG&gt;: jrwils@secuamp;gt;: &lt;STRONG&gt;[Email]&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:22:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-string-between-highlighted-fields-with-regex/m-p/321160#M95944</guid>
      <dc:creator>vik123ash</dc:creator>
      <dc:date>2020-09-29T16:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: How can I extract string between highlighted fields with regex?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-string-between-highlighted-fields-with-regex/m-p/321161#M95945</link>
      <description>&lt;P&gt;Hi @vik123ash,&lt;/P&gt;

&lt;P&gt;You can use below query to extract email address in new field called &lt;CODE&gt;Email&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... &amp;lt;your search&amp;gt; ... | rex field=_raw "(?:[^\:]*\:){4}(?&amp;lt;Email&amp;gt;.*)\["
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I hope this helps.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Harshil&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2017 13:08:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-string-between-highlighted-fields-with-regex/m-p/321161#M95945</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2017-10-23T13:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: How can I extract string between highlighted fields with regex?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-string-between-highlighted-fields-with-regex/m-p/321162#M95946</link>
      <description>&lt;P&gt;Hi vik123ash,&lt;BR /&gt;
you can use&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;invalid\semail\saddress:\s(?&amp;lt;invalid_email&amp;gt;[^\[]*)\[Email\]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;test it at &lt;A href="https://regex101.com/r/hUzreZ/2"&gt;https://regex101.com/r/hUzreZ/2&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2017 13:53:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-string-between-highlighted-fields-with-regex/m-p/321162#M95946</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-10-23T13:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: How can I extract string between highlighted fields with regex?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-string-between-highlighted-fields-with-regex/m-p/321163#M95947</link>
      <description>&lt;P&gt;Thanks Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2017 23:20:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-string-between-highlighted-fields-with-regex/m-p/321163#M95947</guid>
      <dc:creator>vik123ash</dc:creator>
      <dc:date>2017-10-23T23:20:19Z</dc:date>
    </item>
  </channel>
</rss>

