The problem
Phone numbers are typed five different ways, emails are invalid, and you need the domain from an email or an ID from a URL. Before regex, that meant long chains of Left(), Right(), Part() and SearchAndReplace().
What’s available
Quickbase added three regex functions to the formula language in January 2025:
| Function | Returns | Use it to |
|---|---|---|
RegexMatch(text, pattern) |
Boolean | Validate a format |
RegexExtract(text, pattern) |
Text | Pull out part of a value |
RegexReplace(text, pattern, replacement) |
Text | Clean or normalize a value |
Working examples
Flag invalid emails (formula – checkbox):
RegexMatch([Email Address], "^[\\w\\.\\+-]+@[\\w\\.-]+\\.\\w+$")
Normalize phone numbers to digits only (formula – text):
RegexReplace(ToText([Client Contact]), "[()\\-. ]", "")
(555) 123-4567 and 555.123.4567 both become 5551234567.
Extract an email’s domain:
RegexExtract([Email], "@(.*)")
Rules that trip people up
- RE2, not PCRE. Quickbase uses Google’s RE2 standard for performance and safety. RE2 has no lookaheads/lookbehinds and no backreferences, so patterns copied from Stack Overflow may not work. Test on regex101 with the Golang (RE2) flavor.
- Double your backslashes.
\dmust be written\\dinside the formula string. - Literal patterns only. The pattern must be written in the formula. It can’t come from a field or a variable, so you can’t keep patterns in a settings table.
- Text in, text out. Wrap numbers, phone fields and other non-text inputs in
ToText(), and convert the output (for exampleToNumber()) if you need a number.
Practical uses
- A “Data issues” checkbox combining several
RegexMatch()checks, plus a report that lists records to fix. - Normalized match keys (digits-only phone, lowercase trimmed email) for de-duplication or for use as merge fields in imports and upserts.
- Parsing structured text that arrives from emails or integrations, such as order numbers or reference codes.