Power Fx function
IsMatch — Power Fx function reference
Test against a regex pattern.
Syntax
powerfx
IsMatch( Text, Pattern [, Options ] )
Examples
powerfx
IsMatch(txtZip.Text, "\d{5}")→ true / false
powerfx
IsMatch(txtZip.Text, "^\d{5}$")powerfx
IsMatch(txtEmail.Text, Match.Email)
Common mistakes & gotchas
- Power Fx accepts both its own regex-style patterns and named constants (Match.Email, Match.Digit, Match.Letter) — mixing a named constant into a literal string does not work.
- Regex support is a subset of full .NET/JS regex — some advanced constructs are unsupported depending on whether the app uses the legacy or new regex engine setting.
Related Power Fx functions
From Text