<?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 RegEx to extract domain from website field in DemandTools</title>
    <link>https://mycommunity.validity.com/t5/demandtools/regex-to-extract-domain-from-website-field/m-p/1252#M682</link>
    <description>&lt;P&gt;With the help of ChatGPT, I was able to get this RegEx formula to extract the company domain from website field.&amp;nbsp; The use case would be to update another field using the following formula -&lt;BR /&gt;&lt;BR /&gt;RegExReplace(${Website}, "^(?:https?:\/\/)?(?:www\.)?([^\/]+)(\/.*)?$", "$1")&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;To extract the domain from the email, you can try this -&lt;BR /&gt;RegExReplace(${Email}, ".*@(.+)$", "$1")&lt;/P&gt;&lt;P&gt;And this may be useful to review contacts that don't have an email that matches the companies domain.&lt;BR /&gt;&lt;BR /&gt;Good luck!&lt;/P&gt;&lt;P&gt;CC:&amp;nbsp;&lt;a href="https://mycommunity.validity.com/t5/user/viewprofilepage/user-id/19"&gt;@AnthonyValidity&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 30 Aug 2023 19:07:47 GMT</pubDate>
    <dc:creator>michael-wtds</dc:creator>
    <dc:date>2023-08-30T19:07:47Z</dc:date>
    <item>
      <title>RegEx to extract domain from website field</title>
      <link>https://mycommunity.validity.com/t5/demandtools/regex-to-extract-domain-from-website-field/m-p/1252#M682</link>
      <description>&lt;P&gt;With the help of ChatGPT, I was able to get this RegEx formula to extract the company domain from website field.&amp;nbsp; The use case would be to update another field using the following formula -&lt;BR /&gt;&lt;BR /&gt;RegExReplace(${Website}, "^(?:https?:\/\/)?(?:www\.)?([^\/]+)(\/.*)?$", "$1")&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;To extract the domain from the email, you can try this -&lt;BR /&gt;RegExReplace(${Email}, ".*@(.+)$", "$1")&lt;/P&gt;&lt;P&gt;And this may be useful to review contacts that don't have an email that matches the companies domain.&lt;BR /&gt;&lt;BR /&gt;Good luck!&lt;/P&gt;&lt;P&gt;CC:&amp;nbsp;&lt;a href="https://mycommunity.validity.com/t5/user/viewprofilepage/user-id/19"&gt;@AnthonyValidity&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2023 19:07:47 GMT</pubDate>
      <guid>https://mycommunity.validity.com/t5/demandtools/regex-to-extract-domain-from-website-field/m-p/1252#M682</guid>
      <dc:creator>michael-wtds</dc:creator>
      <dc:date>2023-08-30T19:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: RegEx to extract domain from website field</title>
      <link>https://mycommunity.validity.com/t5/demandtools/regex-to-extract-domain-from-website-field/m-p/1254#M684</link>
      <description>&lt;P&gt;This is great,&amp;nbsp;&lt;a href="https://mycommunity.validity.com/t5/user/viewprofilepage/user-id/276"&gt;@michael-wtds&lt;/a&gt;&amp;nbsp;!&amp;nbsp; I Googled this one:&lt;/P&gt;&lt;P&gt;RegExMatch(${Website}, "[^(?:http:\/\/|www\.|https:\/\/)]([^\/]+)")&lt;/P&gt;&lt;P&gt;RegEx is awesome and there's usually more than one way to do the same thing!&lt;/P&gt;&lt;P&gt;Thanks for sharing,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2023 19:05:40 GMT</pubDate>
      <guid>https://mycommunity.validity.com/t5/demandtools/regex-to-extract-domain-from-website-field/m-p/1254#M684</guid>
      <dc:creator>AnthonyValidity</dc:creator>
      <dc:date>2023-08-30T19:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: RegEx to extract domain from website field</title>
      <link>https://mycommunity.validity.com/t5/demandtools/regex-to-extract-domain-from-website-field/m-p/1255#M685</link>
      <description>&lt;P&gt;I checked both versions, found the 1st option removes additional page references (...domain.com/aboutus).&lt;BR /&gt;&lt;BR /&gt;RegExReplace(${Website}, "^(?:https?:\/\/)?(?:www\.)?([^\/]+)(\/.*)?$", "$1")&lt;/P&gt;&lt;P&gt;This version appears to appears to be a wild card replacement similar to removing "http*//*www*"&lt;BR /&gt;&amp;nbsp;RegExReplace(${Website}, "^(?:https?:\/\/)?(?:www\.)?([^\/]+)", "$1")&lt;/P&gt;&lt;P&gt;&lt;a href="https://mycommunity.validity.com/t5/user/viewprofilepage/user-id/19"&gt;@AnthonyValidity&lt;/a&gt;&amp;nbsp;Thanks for the weekly call, and as I always pickup something useful.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2023 19:23:10 GMT</pubDate>
      <guid>https://mycommunity.validity.com/t5/demandtools/regex-to-extract-domain-from-website-field/m-p/1255#M685</guid>
      <dc:creator>michael-wtds</dc:creator>
      <dc:date>2023-08-30T19:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: RegEx to extract domain from website field</title>
      <link>https://mycommunity.validity.com/t5/demandtools/regex-to-extract-domain-from-website-field/m-p/1256#M686</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://mycommunity.validity.com/t5/user/viewprofilepage/user-id/276"&gt;@michael-wtds&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thanks for testing and sharing! I'll send over the one you provided to Petya.&lt;/P&gt;
&lt;P&gt;It is seriously my pleasure - you all add so much to the calls and really make it a lot of fun for me and the team.&amp;nbsp; We appreciate your participation here and on Office Hours.&lt;/P&gt;
&lt;P&gt;Hope you have a great rest of the week!&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2023 21:14:21 GMT</pubDate>
      <guid>https://mycommunity.validity.com/t5/demandtools/regex-to-extract-domain-from-website-field/m-p/1256#M686</guid>
      <dc:creator>AnthonyValidity</dc:creator>
      <dc:date>2023-08-30T21:14:21Z</dc:date>
    </item>
    <item>
      <title>Re: RegEx to extract domain from website field</title>
      <link>https://mycommunity.validity.com/t5/demandtools/regex-to-extract-domain-from-website-field/m-p/1937#M1068</link>
      <description>&lt;P&gt;When I tried matching existing accounts by website using the domain comparison, I didn't get any matching results.&amp;nbsp; But when I used the following RegEx matching type, it found all similar accounts -&lt;/P&gt;&lt;P&gt;^(?:https?:\/\/)?(?:www\.)?([^\/]+)(\/.*)?$&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="michaelwtds_0-1713965223932.png" style="width: 400px;"&gt;&lt;img src="https://mycommunity.validity.com/t5/image/serverpage/image-id/547i1CAE36F1AC5832FE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="michaelwtds_0-1713965223932.png" alt="michaelwtds_0-1713965223932.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2024 13:27:13 GMT</pubDate>
      <guid>https://mycommunity.validity.com/t5/demandtools/regex-to-extract-domain-from-website-field/m-p/1937#M1068</guid>
      <dc:creator>michael-wtds</dc:creator>
      <dc:date>2024-04-24T13:27:13Z</dc:date>
    </item>
  </channel>
</rss>

