Skip to content

RegexReplace Function

Eugene Sergeev edited this page Mar 6, 2016 · 5 revisions

Syntax

string RegexReplace(input:string, pattern:string, with:string)

Description

Replaces the Regex pattern with the specified string.

Remarks

If the second input parameter (pattern string) or the third input parameter (with string) is null, an exception is thrown.

Supported Version

1.0.0.0 and later

Examples

Remove all non alphanumeric chars except A-z, 0-9 and minus.

RegexReplace([//WorkflowData/FirstName],"[^a-zA-Z0-9-]","")
Clone this wiki locally