Guide to data validation in HubSpot with Regex

As of yesterday, all HubSpot accounts are included in the beta testing of a new update where you can now set validation rules for your HubSpot data with Regex (regular expressions).

This is a very powerful new way to validate and ensure quality of your CRM data, but it also comes is a format that is beyond confusing to most, so I will try to demonstrate and simplify how to use this new feature to your advantage.

How and where can you use regex in HubSpot?

The option to use regex validation will be an alternative to using the existing "simple rules", and is at least for now only available in text properties. You can of course use this validation to receive and validate numbers as well, but the property has to be of type "Single-line text", or "Multi-line text"

Why should you validate data input?

There are many reasons to validate different data in different ways even when we have determined the data type to be "text" (or "string" if you are fancy 😉).

In addition to just making sure the data we put into our CRM system is valid, like having an "@" in an email address or the right amount of characters in a postal code, this is also useful to enforce consistency in your data....

subscribe to our newsletter

Subscribe to our newsletter to read the rest of the article.

You may need to refresh the page after subscribing. It can sometimes take up to 60 seconds for our system to update.