#regexReplace
Returns the string with all matches of a regular expression replaced with another value.
#regexReplace(value, pattern, replacement)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
value |
path | string |
The string to search. |
pattern |
string |
A .NET regular expression. |
replacement |
string |
The replacement text. |
Returns
Section titled “Returns”string
Examples
Section titled “Examples”Mask digits
Section titled “Mask digits”{ "code": "a1b2"}{ "result": "#regexReplace($.code, '[0-9]', '_')"}{ "result": "a_b_"}