#isRegexMatch
Returns true if a string matches the provided regular expression, false otherwise.
#isRegexMatch(value, pattern)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
value |
path | string |
The string to test. |
pattern |
string |
A .NET regular expression. |
Returns
Section titled “Returns”boolean
Examples
Section titled “Examples”Letters then digits
Section titled “Letters then digits”{ "code": "abc123"}{ "result": "#isRegexMatch($.code, '^[a-z]+[0-9]+$')"}{ "result": true}