Method RegEx():batchReplace() Foundation

Performs replacement in multiple subject strings.

Syntax
:batchReplace( <aSubjects>, [<cReplacement>] ) --> aStrings
Parameters
<aSubjects>
An array with the subject strings to process.
<cReplacement>
The replacement text. This defaults to the empty string (""), causing the matched patterns to be erased.
Return

An array with the modified strings. The array is organized like the input array, and contains one element with the modified input string.

Description

Applies the same replacement operation to multiple subject strings. All occurrences are replaced in each subject (global replacement).

Feedback

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.