Method RegEx():quickReplace() Foundation
Performs a one-time search and replace.
:quickReplace( <cPattern>, <cSubject>, [<cReplacement>] ) --> cString
A modified string with the replacements.
Convenience class method for replacing all occurrences of a pattern without having to first create a RegEx object.
Quick replace
cClean := RegEx():quickReplace("\s+", " too many spaces ", " ")
? cClean // " too many spaces "
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.