<?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 Using regex to match on domain but exclude subdomains in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Using-regex-to-match-on-domain-but-exclude-subdomains/m-p/350931#M34464</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to use regex to build a List based on pageviews and it's driving me a little bit crazy.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The goal is to create a list of people that have visited a page on our main website but not on any subdomains.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So it would return:&lt;/P&gt;&lt;P&gt;- website.com &amp;gt; yes&lt;/P&gt;&lt;P&gt;- website.com/help &amp;gt; yes&lt;/P&gt;&lt;P&gt;- help.website.com &amp;gt; no&lt;/P&gt;&lt;P&gt;- help.website.com/help &amp;gt; no&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone please help me out? The documentation on regular expressions is reaaaaally slim..&lt;/P&gt;</description>
    <pubDate>Tue, 30 Jun 2020 13:30:46 GMT</pubDate>
    <dc:creator>alivia</dc:creator>
    <dc:date>2020-06-30T13:30:46Z</dc:date>
    <item>
      <title>Using regex to match on domain but exclude subdomains</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Using-regex-to-match-on-domain-but-exclude-subdomains/m-p/350931#M34464</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to use regex to build a List based on pageviews and it's driving me a little bit crazy.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The goal is to create a list of people that have visited a page on our main website but not on any subdomains.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So it would return:&lt;/P&gt;&lt;P&gt;- website.com &amp;gt; yes&lt;/P&gt;&lt;P&gt;- website.com/help &amp;gt; yes&lt;/P&gt;&lt;P&gt;- help.website.com &amp;gt; no&lt;/P&gt;&lt;P&gt;- help.website.com/help &amp;gt; no&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone please help me out? The documentation on regular expressions is reaaaaally slim..&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2020 13:30:46 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Using-regex-to-match-on-domain-but-exclude-subdomains/m-p/350931#M34464</guid>
      <dc:creator>alivia</dc:creator>
      <dc:date>2020-06-30T13:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: Using regex to match on domain but exclude subdomains</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Using-regex-to-match-on-domain-but-exclude-subdomains/m-p/352470#M34578</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/6569"&gt;@alivia&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not sure which resources you've been working with but have you viewed the following:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;A href="https://legacydocs.hubspot.com/docs/methods/lists/create_list" target="_blank" rel="noopener"&gt;Contact List API Docs&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://community.hubspot.com/t5/APIs-Integrations/Getting-Contact-has-visited-a-URL-that-matches-regular/m-p/241640" target="_blank" rel="noopener"&gt;Forum example 1&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://community.hubspot.com/t5/APIs-Integrations/Regex-for-page-view-active-lists-is-not-working/td-p/224177" target="_blank" rel="noopener"&gt;Forum example 2&lt;/A&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope these help!&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jul 2020 09:09:30 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Using-regex-to-match-on-domain-but-exclude-subdomains/m-p/352470#M34578</guid>
      <dc:creator>Willson</dc:creator>
      <dc:date>2020-07-07T09:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: Using regex to match on domain but exclude subdomains</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Using-regex-to-match-on-domain-but-exclude-subdomains/m-p/353246#M34667</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes I had an intensive session of searching through all existing documentation and was unfortunately unable to get an answer &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alivia&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jul 2020 15:28:02 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Using-regex-to-match-on-domain-but-exclude-subdomains/m-p/353246#M34667</guid>
      <dc:creator>alivia</dc:creator>
      <dc:date>2020-07-09T15:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: Using regex to match on domain but exclude subdomains</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Using-regex-to-match-on-domain-but-exclude-subdomains/m-p/353438#M34687</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/6569"&gt;@alivia&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Do you have any details on what you've attempted so far? Taking a look into it from my end, when I test using &lt;A href="https://regex101.com/" target="_blank" rel="noopener"&gt;Regex101.com&lt;/A&gt; I am able to use the following:&lt;/P&gt;
&lt;PRE&gt;Regular expression:
^website.com$

Test String:
website.com
help.website.com&lt;/PRE&gt;
&lt;P&gt;In the above, example, we will only match the 1st string as we're stating that the string should start with website and end with .com, so if any result shows help. etc, this will be excluded.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps!&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2020 09:56:08 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Using-regex-to-match-on-domain-but-exclude-subdomains/m-p/353438#M34687</guid>
      <dc:creator>Willson</dc:creator>
      <dc:date>2020-07-10T09:56:08Z</dc:date>
    </item>
  </channel>
</rss>

