Our forms use regex to validate data. This gives you unlimited validation power. However, regex can be complicated.
We recommend Regexr.com - it's a great tool to test and validate your regex. However, we went ahead and added some of the most common use cases here:
Name | Regex | Description | Valid example | Invalid Example |
---|---|---|---|---|
^\S+@\S+\.\S+$ | Validates an email address | hey@me.com | hey@co | |
contains | /test/ | Contains the word "test" | hey test me | not in here! |
Full number | /^\d+$/ | Is a full number (no decimals) | 12 | 12.3 |
Required field | .+ | Has at least one character in length | Hey |
You can find plenty of other regex here: Regex101.com/library