show / hide menu

RegexReplace

This function takes a specified input string and replaces all sub strings that match a given regular expression with a specified replacement string.

Syntax:
RegexReplace(OriginalString,Pattern,Replacement)
where
OriginalString is the string to search for a match.
Pattern is the regular expression pattern to match.
Replacement is the replacement string.

Example:
MessageBox(RegexReplace(“Hello world!”, “world”, “universe”)) will return “Hello universe!”