Global regex replacer
Last updated
Last updated
[string/Global regex replacer]
Replaces all occurrences of regex
in string
with new
.
Example:
regex
is set to (\w+)\s(\w+)"
new
is set to "$2, $1"
"Jane Smith"@0 received via string
replaced
sends "Smith, Jane"@0
Keywords: replace, string, search, regex, regular expression
string: string
Receives the string to be replaced. Example: "dog cat rain Dog"
regex: string
Receives regular expression to test the specified string against. Example: "[Dd]og"
new: string
Receives the replacement string. In the replacement you can use backreference. More: Example: "cat"
replaced: string
Sends the replaced string. Example: "cat cat rain cat"