<?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 to extract email addresses from URLs using regex? in Splunk Enterprise Security</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-to-extract-email-addresses-from-URLs-using-regex/m-p/444654#M6037</link>
    <description>&lt;P&gt;I have URL's that contain email addresses that I would like to extract via rex into an email field:&lt;/P&gt;

&lt;P&gt;SAMPLE RAW:&lt;/P&gt;

&lt;H2&gt;macplatform.wondershare.com/interface.php?m=co&amp;amp;client_sign={CD1AABB2-586E-55A5-A891-877563550973}&amp;amp;product_id=735&amp;amp;version=10.3.2&amp;amp;email=&lt;A href="mailto:Christopher.Nobody@somedomain.com" target="_blank"&gt;Christopher.Nobody@somedomain.com&lt;/A&gt;&amp;amp;lang=en_us&amp;amp;type=0&amp;amp;cc=92445606E83D64D283AD3A5EF2A9869E&amp;amp;interface_version=1.1&lt;/H2&gt;

&lt;H2&gt;link.defensenews.com/manage/5ba/preferences-center?email=&lt;A href="mailto:moe.nobody@domain.org" target="_blank"&gt;moe.nobody@domain.org&lt;/A&gt;&lt;/H2&gt;

&lt;H2&gt;www2.criver.com/form/checkEmailAjax/account_id/60962/form_field_id/129003/tracker_id/278458707/field_id/60962_129003pi_60962_129003?param=&lt;A href="mailto:Edward.Nobody2@some.com" target="_blank"&gt;Edward.Nobody2@some.com&lt;/A&gt;&lt;/H2&gt;

&lt;H2&gt;login.yahoo.com/account/comm-channel/refresh?display=login&amp;amp;.intl=us&amp;amp;intl=us&amp;amp;.lang=en-US&amp;amp;src=finance&amp;amp;.src=finance&amp;amp;login=&lt;A href="mailto:kimberly.nobody@somewhere.gov" target="_blank"&gt;kimberly.nobody@somewhere.gov&lt;/A&gt;&amp;amp;tn=arinfo_review&amp;amp;context=spreg_cc&amp;amp;.&lt;/H2&gt;

&lt;H2&gt;&lt;A href="http://www.borisfx.com/BCCAVXActivation.php?UPID=MCHITNB-ADRELHQ-OSJZBFU-VYIQAAM&amp;amp;email=ronald.nobody@blahblah.com&amp;amp;firstname=Ron&amp;amp;lastname=nobody&amp;amp;companyname" target="_blank"&gt;www.borisfx.com/BCCAVXActivation.php?UPID=MCHITNB-ADRELHQ-OSJZBFU-VYIQAAM&amp;amp;email=ronald.nobody@blahblah.com&amp;amp;firstname=Ron&amp;amp;lastname=nobody&amp;amp;companyname&lt;/A&gt;&lt;/H2&gt;

&lt;H2&gt;&lt;A href="http://www.idevmail.net/unsubscribe.aspx?d=94&amp;amp;m=1319&amp;amp;e=jill.nobody2@domain.net" target="_blank"&gt;www.idevmail.net/unsubscribe.aspx?d=94&amp;amp;m=1319&amp;amp;e=jill.nobody2@domain.net&lt;/A&gt;&lt;/H2&gt;</description>
    <pubDate>Wed, 30 Sep 2020 00:24:07 GMT</pubDate>
    <dc:creator>dsmeerkat</dc:creator>
    <dc:date>2020-09-30T00:24:07Z</dc:date>
    <item>
      <title>How to extract email addresses from URLs using regex?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-to-extract-email-addresses-from-URLs-using-regex/m-p/444654#M6037</link>
      <description>&lt;P&gt;I have URL's that contain email addresses that I would like to extract via rex into an email field:&lt;/P&gt;

&lt;P&gt;SAMPLE RAW:&lt;/P&gt;

&lt;H2&gt;macplatform.wondershare.com/interface.php?m=co&amp;amp;client_sign={CD1AABB2-586E-55A5-A891-877563550973}&amp;amp;product_id=735&amp;amp;version=10.3.2&amp;amp;email=&lt;A href="mailto:Christopher.Nobody@somedomain.com" target="_blank"&gt;Christopher.Nobody@somedomain.com&lt;/A&gt;&amp;amp;lang=en_us&amp;amp;type=0&amp;amp;cc=92445606E83D64D283AD3A5EF2A9869E&amp;amp;interface_version=1.1&lt;/H2&gt;

&lt;H2&gt;link.defensenews.com/manage/5ba/preferences-center?email=&lt;A href="mailto:moe.nobody@domain.org" target="_blank"&gt;moe.nobody@domain.org&lt;/A&gt;&lt;/H2&gt;

&lt;H2&gt;www2.criver.com/form/checkEmailAjax/account_id/60962/form_field_id/129003/tracker_id/278458707/field_id/60962_129003pi_60962_129003?param=&lt;A href="mailto:Edward.Nobody2@some.com" target="_blank"&gt;Edward.Nobody2@some.com&lt;/A&gt;&lt;/H2&gt;

&lt;H2&gt;login.yahoo.com/account/comm-channel/refresh?display=login&amp;amp;.intl=us&amp;amp;intl=us&amp;amp;.lang=en-US&amp;amp;src=finance&amp;amp;.src=finance&amp;amp;login=&lt;A href="mailto:kimberly.nobody@somewhere.gov" target="_blank"&gt;kimberly.nobody@somewhere.gov&lt;/A&gt;&amp;amp;tn=arinfo_review&amp;amp;context=spreg_cc&amp;amp;.&lt;/H2&gt;

&lt;H2&gt;&lt;A href="http://www.borisfx.com/BCCAVXActivation.php?UPID=MCHITNB-ADRELHQ-OSJZBFU-VYIQAAM&amp;amp;email=ronald.nobody@blahblah.com&amp;amp;firstname=Ron&amp;amp;lastname=nobody&amp;amp;companyname" target="_blank"&gt;www.borisfx.com/BCCAVXActivation.php?UPID=MCHITNB-ADRELHQ-OSJZBFU-VYIQAAM&amp;amp;email=ronald.nobody@blahblah.com&amp;amp;firstname=Ron&amp;amp;lastname=nobody&amp;amp;companyname&lt;/A&gt;&lt;/H2&gt;

&lt;H2&gt;&lt;A href="http://www.idevmail.net/unsubscribe.aspx?d=94&amp;amp;m=1319&amp;amp;e=jill.nobody2@domain.net" target="_blank"&gt;www.idevmail.net/unsubscribe.aspx?d=94&amp;amp;m=1319&amp;amp;e=jill.nobody2@domain.net&lt;/A&gt;&lt;/H2&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:24:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-to-extract-email-addresses-from-URLs-using-regex/m-p/444654#M6037</guid>
      <dc:creator>dsmeerkat</dc:creator>
      <dc:date>2020-09-30T00:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract email addresses from URLs using regex?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-to-extract-email-addresses-from-URLs-using-regex/m-p/444655#M6038</link>
      <description>&lt;P&gt;Are you asking for the community to write the regex for you? I'm not sure exactly what your question is. What have you tried so far?&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2019 17:07:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-to-extract-email-addresses-from-URLs-using-regex/m-p/444655#M6038</guid>
      <dc:creator>smoir_splunk</dc:creator>
      <dc:date>2019-05-01T17:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract email addresses from URLs using regex?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-to-extract-email-addresses-from-URLs-using-regex/m-p/444656#M6039</link>
      <description>&lt;P&gt;Yes I am new to splunk and I'm not sure how to write this regex...I tried extracting a new field with the tool, but it didn't always work.&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2019 17:12:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-to-extract-email-addresses-from-URLs-using-regex/m-p/444656#M6039</guid>
      <dc:creator>dsmeerkat</dc:creator>
      <dc:date>2019-05-01T17:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract email addresses from URLs using regex?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-to-extract-email-addresses-from-URLs-using-regex/m-p/444657#M6040</link>
      <description>&lt;P&gt;You may want to add other characters like - and _ to the regex. This is primitive and just catching the word and . characters on either side of the @ and assumes your url is delimited with other special chars like = from your examples&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults
| eval foo="macplatform.wondershare.com/interface.php?m=co&amp;amp;client_sign={CD1AABB2-586E-55A5-A891-877563550973}∏uct_id=735&amp;amp;version=10.3.2&amp;amp;email=Christopher.Nobody@somedomain.com⟨=en_us&amp;amp;type=0&amp;amp;cc=92445606E83D64D283AD3A5EF2A9869E∫erface_version=1.1 
link.defensenews.com/manage/5ba/preferences-center?email=moe.nobody@domain.org 
www2.criver.com/form/checkEmailAjax/account_id/60962/form_field_id/129003/tracker_id/278458707/field_id/60962_129003pi_60962_129003?param=Edward.Nobody2@some.com 
login.yahoo.com/account/comm-channel/refresh?display=login&amp;amp;.intl=us∫l=us&amp;amp;.lang=en-US&amp;amp;src=finance&amp;amp;.src=finance&amp;amp;login=kimberly.nobody@somewhere.gov&amp;amp;tn=arinfo_review&amp;amp;context=spreg_cc&amp;amp;. 
&lt;A href="https://community.splunk.com/www.borisfx.com/BCCAVXActivation.php?UPID=MCHITNB-ADRELHQ-OSJZBFU-VYIQAAM&amp;amp;email=ronald.nobody@blahblah.com&amp;amp;firstname=Ron&amp;amp;lastname=nobody∁anyname" target="test_blank"&gt;www.borisfx.com/BCCAVXActivation.php?UPID=MCHITNB-ADRELHQ-OSJZBFU-VYIQAAM&amp;amp;email=ronald.nobody@blahblah.com&amp;amp;firstname=Ron&amp;amp;lastname=nobody∁anyname&lt;/A&gt; &lt;A href="www.idevmail.net/unsubscribe.aspx?d=94&amp;amp;m=1319&amp;amp;e=jill.nobody2@domain.net&amp;quot;" target="test_blank"&gt;www.idevmail.net/unsubscribe.aspx?d=94&amp;amp;m=1319&amp;amp;e=jill.nobody2@domain.net"&lt;/A&gt;;
| makemv foo delim=" "
| mvexpand foo
| rex field=foo "(?&amp;lt;email&amp;gt;[\w\.]+@[\w\.]+)"
| table foo email
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 01 May 2019 17:12:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-to-extract-email-addresses-from-URLs-using-regex/m-p/444657#M6040</guid>
      <dc:creator>anthonymelita</dc:creator>
      <dc:date>2019-05-01T17:12:04Z</dc:date>
    </item>
  </channel>
</rss>

