<?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: Top-Level Domain Extraction (from URLs) in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Top-Level-Domain-Extraction-from-URLs/m-p/319074#M59619</link>
    <description>&lt;P&gt;Don't forget to click &lt;CODE&gt;Accept&lt;/CODE&gt; on the best answer (for you) and upvote anything else that was helpful.&lt;/P&gt;</description>
    <pubDate>Fri, 26 May 2017 14:00:36 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2017-05-26T14:00:36Z</dc:date>
    <item>
      <title>Top-Level Domain Extraction (from URLs)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Top-Level-Domain-Extraction-from-URLs/m-p/319069#M59614</link>
      <description>&lt;P&gt;So I've searched and searched and can't find a regex that quite fits what I want to do...What I'd like to do is extract just the ".com", ".net", ".org", etc from a URL. &lt;BR /&gt;
My "domain" field shows: "&lt;A href="http://cdn.springserve.com"&gt;http://cdn.springserve.com&lt;/A&gt;" or "&lt;A href="https://www.allpennystocks.org"&gt;https://www.allpennystocks.org&lt;/A&gt;", etc (for example).&lt;/P&gt;

&lt;P&gt;I also get "&lt;A href="http://www.familylifeins.com/Resources/Shared/scripts/widgets.js"&gt;www.familylifeins.com/Resources/Shared/scripts/widgets.js&lt;/A&gt;" sometimes in the domain field and of course I want to drop everything but the ".com"&lt;/P&gt;

&lt;P&gt;What I need is just the top-level domain (".com", ".net", ".org", etc), and I've tried several different regex's I found here, but they don't quite work the way I need it to.&lt;/P&gt;

&lt;P&gt;Basically I want to create a list of all the TLDs my company uses in a 90 day period.&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2017 11:26:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Top-Level-Domain-Extraction-from-URLs/m-p/319069#M59614</guid>
      <dc:creator>dsmeerkat</dc:creator>
      <dc:date>2017-05-26T11:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: Top-Level Domain Extraction (from URLs)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Top-Level-Domain-Extraction-from-URLs/m-p/319070#M59615</link>
      <description>&lt;P&gt;Try this regex string.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(?&amp;lt;TLD&amp;gt;\.\w+?)(?:$|\/)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 26 May 2017 12:54:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Top-Level-Domain-Extraction-from-URLs/m-p/319070#M59615</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2017-05-26T12:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: Top-Level Domain Extraction (from URLs)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Top-Level-Domain-Extraction-from-URLs/m-p/319071#M59616</link>
      <description>&lt;P&gt;Great minds think alike &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2017 13:04:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Top-Level-Domain-Extraction-from-URLs/m-p/319071#M59616</guid>
      <dc:creator>rjthibod</dc:creator>
      <dc:date>2017-05-26T13:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: Top-Level Domain Extraction (from URLs)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Top-Level-Domain-Extraction-from-URLs/m-p/319072#M59617</link>
      <description>&lt;P&gt;There are apps for that stuff:&lt;/P&gt;

&lt;P&gt;URL Tollbox: &lt;A href="https://splunkbase.splunk.com/app/2734/"&gt;https://splunkbase.splunk.com/app/2734/&lt;/A&gt;&lt;BR /&gt;
URL Parser: &lt;A href="https://splunkbase.splunk.com/app/1545/"&gt;https://splunkbase.splunk.com/app/1545/&lt;/A&gt;&lt;BR /&gt;
URL Expander: &lt;A href="https://splunkbase.splunk.com/app/3460/"&gt;https://splunkbase.splunk.com/app/3460/&lt;/A&gt;&lt;BR /&gt;
URL Parser: &lt;A href="https://splunkbase.splunk.com/app/3396/"&gt;https://splunkbase.splunk.com/app/3396/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2017 13:50:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Top-Level-Domain-Extraction-from-URLs/m-p/319072#M59617</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-05-26T13:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: Top-Level Domain Extraction (from URLs)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Top-Level-Domain-Extraction-from-URLs/m-p/319073#M59618</link>
      <description>&lt;P&gt;Thank you everyone...VERY much!&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2017 13:58:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Top-Level-Domain-Extraction-from-URLs/m-p/319073#M59618</guid>
      <dc:creator>dsmeerkat</dc:creator>
      <dc:date>2017-05-26T13:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: Top-Level Domain Extraction (from URLs)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Top-Level-Domain-Extraction-from-URLs/m-p/319074#M59619</link>
      <description>&lt;P&gt;Don't forget to click &lt;CODE&gt;Accept&lt;/CODE&gt; on the best answer (for you) and upvote anything else that was helpful.&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2017 14:00:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Top-Level-Domain-Extraction-from-URLs/m-p/319074#M59619</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-05-26T14:00:36Z</dc:date>
    </item>
  </channel>
</rss>

