<?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: Regex for Contact has viewed at least one URL that matches regular expression in Tips, Tricks &amp; Best Practices</title>
    <link>https://community.hubspot.com/t5/Tips-Tricks-Best-Practices/Regex-for-Contact-has-viewed-at-least-one-URL-that-matches/m-p/385336#M1477</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/4468"&gt;@John&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thanks for reacting!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is in the contact property Hubspot score:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2020-11-10 at 15.21.47.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/34093iA1FDE8B874BB891E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2020-11-10 at 15.21.47.png" alt="Screenshot 2020-11-10 at 15.21.47.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Sorry, not a developer so not sure whether this answers your question!&lt;/P&gt;&lt;P&gt;Let me know if you need any more information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Helene&lt;/P&gt;</description>
    <pubDate>Tue, 10 Nov 2020 14:23:31 GMT</pubDate>
    <dc:creator>helenechoo</dc:creator>
    <dc:date>2020-11-10T14:23:31Z</dc:date>
    <item>
      <title>Regex for Contact has viewed at least one URL that matches regular expression</title>
      <link>https://community.hubspot.com/t5/Tips-Tricks-Best-Practices/Regex-for-Contact-has-viewed-at-least-one-URL-that-matches/m-p/385019#M1471</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to create a regex that &lt;STRONG&gt;matches&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.youweagency.com/staffing" target="_blank" rel="noopener"&gt;https://www.youweagency.com/staffing&lt;/A&gt;&lt;/P&gt;&lt;P&gt;youweagency.com/staffing&lt;/P&gt;&lt;P&gt;youweagency.nl/staffing&lt;/P&gt;&lt;P&gt;youweagency.se/staffing&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.youweagency.com/e-commerce" target="_blank" rel="noopener"&gt;https://www.youweagency.com/e-commerce&lt;/A&gt;&lt;/P&gt;&lt;P&gt;youweagency.nl/e-commerce&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;where staffing or e-commerce can also be hosting or strategy-organization etc. (we have 8 of those in total),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but &lt;STRONG&gt;does not match&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.youweagency.com/e-commerce/e-commerce-and-pim-one-integrated-suite" target="_blank" rel="noopener"&gt;https://www.youweagency.com/e-commerce/e-commerce-and-pim-one-integrated-suite&lt;/A&gt;&lt;/P&gt;&lt;P&gt;youweagency.nl/e-commerce/e-commerce-and-pim-one-integrated-suite&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so anything after e-commerce (or any of the other 7) shouldn't match.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been trying this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;https\:\/\/(www\.|\.)youweagency\.(com|nl|se)\/(e\-commerce|staffing|hosting|strategy\-organization|experience\-design|data\-intelligence|digital\-marketing|content\-management)$&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;which I tested with&amp;nbsp;&lt;A href="https://www.regextester.com/" target="_blank" rel="noopener"&gt;https://www.regextester.com/&lt;/A&gt;&amp;nbsp;and worked fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't get it to work here in Hubspot though.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please help?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Mon, 09 Nov 2020 15:33:53 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Tips-Tricks-Best-Practices/Regex-for-Contact-has-viewed-at-least-one-URL-that-matches/m-p/385019#M1471</guid>
      <dc:creator>helenechoo</dc:creator>
      <dc:date>2020-11-09T15:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: Regex for Contact has viewed at least one URL that matches regular expression</title>
      <link>https://community.hubspot.com/t5/Tips-Tricks-Best-Practices/Regex-for-Contact-has-viewed-at-least-one-URL-that-matches/m-p/385177#M1473</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/149753"&gt;@helenechoo&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for reaching out to the HubSpot Community. I'm not too familiar with this topic, but let's see if Community member can share some thoughs!&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/2450"&gt;@tjoyce&lt;/a&gt;&amp;nbsp;, is this topic something you can share advice?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2020 02:44:39 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Tips-Tricks-Best-Practices/Regex-for-Contact-has-viewed-at-least-one-URL-that-matches/m-p/385177#M1473</guid>
      <dc:creator>natsumimori</dc:creator>
      <dc:date>2020-11-10T02:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: Regex for Contact has viewed at least one URL that matches regular expression</title>
      <link>https://community.hubspot.com/t5/Tips-Tricks-Best-Practices/Regex-for-Contact-has-viewed-at-least-one-URL-that-matches/m-p/385234#M1474</link>
      <description>&lt;P&gt;I am going to tag&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/4468"&gt;@John&lt;/a&gt;&amp;nbsp;- I have seen him write some beautiful regex's and hopefully he has an answer for you&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/149753"&gt;@helenechoo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2020 09:17:33 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Tips-Tricks-Best-Practices/Regex-for-Contact-has-viewed-at-least-one-URL-that-matches/m-p/385234#M1474</guid>
      <dc:creator>tjoyce</dc:creator>
      <dc:date>2020-11-10T09:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: Regex for Contact has viewed at least one URL that matches regular expression</title>
      <link>https://community.hubspot.com/t5/Tips-Tricks-Best-Practices/Regex-for-Contact-has-viewed-at-least-one-URL-that-matches/m-p/385332#M1476</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/2450"&gt;@tjoyce&lt;/a&gt;. &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/149753"&gt;@helenechoo&lt;/a&gt;, here are some questions for you to answer before any of us can help: Is this a text field, url field, or link field? Are you developing locally or in the hs IDE?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2020 14:18:20 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Tips-Tricks-Best-Practices/Regex-for-Contact-has-viewed-at-least-one-URL-that-matches/m-p/385332#M1476</guid>
      <dc:creator>John</dc:creator>
      <dc:date>2020-11-10T14:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: Regex for Contact has viewed at least one URL that matches regular expression</title>
      <link>https://community.hubspot.com/t5/Tips-Tricks-Best-Practices/Regex-for-Contact-has-viewed-at-least-one-URL-that-matches/m-p/385336#M1477</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/4468"&gt;@John&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thanks for reacting!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is in the contact property Hubspot score:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2020-11-10 at 15.21.47.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/34093iA1FDE8B874BB891E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2020-11-10 at 15.21.47.png" alt="Screenshot 2020-11-10 at 15.21.47.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Sorry, not a developer so not sure whether this answers your question!&lt;/P&gt;&lt;P&gt;Let me know if you need any more information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Helene&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2020 14:23:31 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Tips-Tricks-Best-Practices/Regex-for-Contact-has-viewed-at-least-one-URL-that-matches/m-p/385336#M1477</guid>
      <dc:creator>helenechoo</dc:creator>
      <dc:date>2020-11-10T14:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: Regex for Contact has viewed at least one URL that matches regular expression</title>
      <link>https://community.hubspot.com/t5/Tips-Tricks-Best-Practices/Regex-for-Contact-has-viewed-at-least-one-URL-that-matches/m-p/385389#M1479</link>
      <description>&lt;P&gt;You need to make the https:// and www. strings optional&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;(?:https?\:\/\/)?(www\.)?youweagency\.(com|nl|se)\/(e\-commerce|staffing|hosting|strategy\-organization|experience\-design|data\-intelligence|digital\-marketing|content\-management)$&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The ? makes anything preceeding it optional. Please note, I did not test this in hubspot.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Edit: if you want to account for query strings and tracking codes, then you could remove the $ at the end of the regex above and add the following code to the end:&amp;nbsp;&lt;STRONG&gt;(?:\?.*)?&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2020 16:31:48 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Tips-Tricks-Best-Practices/Regex-for-Contact-has-viewed-at-least-one-URL-that-matches/m-p/385389#M1479</guid>
      <dc:creator>John</dc:creator>
      <dc:date>2020-11-10T16:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: Regex for Contact has viewed at least one URL that matches regular expression</title>
      <link>https://community.hubspot.com/t5/Tips-Tricks-Best-Practices/Regex-for-Contact-has-viewed-at-least-one-URL-that-matches/m-p/385554#M1482</link>
      <description>&lt;P&gt;That worked, thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 06:44:27 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Tips-Tricks-Best-Practices/Regex-for-Contact-has-viewed-at-least-one-URL-that-matches/m-p/385554#M1482</guid>
      <dc:creator>helenechoo</dc:creator>
      <dc:date>2020-11-11T06:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: Regex for Contact has viewed at least one URL that matches regular expression</title>
      <link>https://community.hubspot.com/t5/Tips-Tricks-Best-Practices/Regex-for-Contact-has-viewed-at-least-one-URL-that-matches/m-p/385555#M1483</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/2450"&gt;@tjoyce&lt;/a&gt;&amp;nbsp;for tagging in&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/4468"&gt;@John&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 07:10:33 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Tips-Tricks-Best-Practices/Regex-for-Contact-has-viewed-at-least-one-URL-that-matches/m-p/385555#M1483</guid>
      <dc:creator>natsumimori</dc:creator>
      <dc:date>2020-11-11T07:10:33Z</dc:date>
    </item>
  </channel>
</rss>

