<?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: simple email regex in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/simple-email-regex/m-p/335661#M99690</link>
    <description>&lt;P&gt;your regex worked great. Part of the problem was a dumb mistake on my part. i had switched the fields around in the field=email_from "(&amp;lt;|\;)(?[^&amp;gt;\;]+)"&lt;/P&gt;

&lt;P&gt;the orig field that had the values is email_from, not from. i wanted to create a new field called from... so i had it backwards.&lt;/P&gt;

&lt;P&gt;Thank you for the regex!&lt;/P&gt;</description>
    <pubDate>Fri, 28 Jul 2017 12:49:55 GMT</pubDate>
    <dc:creator>kleckns</dc:creator>
    <dc:date>2017-07-28T12:49:55Z</dc:date>
    <item>
      <title>simple email regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/simple-email-regex/m-p/335659#M99688</link>
      <description>&lt;P&gt;Ive been trying most of the regex solutions on this forum, but cant get any of them to work. Im trying to extract emails into a new field without any of the extra junk&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;field value needs regex:
 "John Doe" &amp;lt;john.doe@somedomain.tld&amp;gt;

search:
    ... | rex field=from "(?&amp;lt;from&amp;gt;(?&amp;lt;=&amp;lt;)[^&amp;gt;]+)" | table from, other fields, etc...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;im looking for &lt;A href="mailto:john.doe@somedomain.tld"&gt;john.doe@somedomain.tld&lt;/A&gt; without any quotes or gt/lt characters around it in the from field&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2017 19:29:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/simple-email-regex/m-p/335659#M99688</guid>
      <dc:creator>kleckns</dc:creator>
      <dc:date>2017-07-27T19:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: simple email regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/simple-email-regex/m-p/335660#M99689</link>
      <description>&lt;P&gt;This should do it.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex field=from "(\&amp;lt;|\;)(?&amp;lt;from&amp;gt;[^\&amp;gt;\;]+)" | table from, other fields, etc...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 27 Jul 2017 19:37:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/simple-email-regex/m-p/335660#M99689</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-07-27T19:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: simple email regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/simple-email-regex/m-p/335661#M99690</link>
      <description>&lt;P&gt;your regex worked great. Part of the problem was a dumb mistake on my part. i had switched the fields around in the field=email_from "(&amp;lt;|\;)(?[^&amp;gt;\;]+)"&lt;/P&gt;

&lt;P&gt;the orig field that had the values is email_from, not from. i wanted to create a new field called from... so i had it backwards.&lt;/P&gt;

&lt;P&gt;Thank you for the regex!&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2017 12:49:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/simple-email-regex/m-p/335661#M99690</guid>
      <dc:creator>kleckns</dc:creator>
      <dc:date>2017-07-28T12:49:55Z</dc:date>
    </item>
  </channel>
</rss>

