Test, validate and match regular expressions
This regex matches HubSpot-related URLs, specifically those starting with https:// and ending with .com. It optionally allows a 4-character subdomain (letters or dots) before the main domain. The main domain can be either a numeric ID followed by '.hs-sites' (with any character as separator), 'wthubspot', or 'hubspot'. It also allows an optional trailing slash. This is useful for detecting or validating HubSpot-hosted site links.