Regular Expressions 101

Community Patterns

Checking if it's an hubspot url

0

Regular Expression
ECMAScript (JavaScript)

/
https:\/\/([a-z\.]{4})?([0-9]+.hs-sites|wthubspot|hubspot).com[\/]?
/
gm

Description

This Regex checks if it's a valid hubspot domain

Submitted by anonymous - a year ago