string.replaceAllRegex()
Replace all occurrences of substrings matching a regular expression in a String.
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
pattern |
true |
Regular expression to match in the calling String. Supports Java regex. |
|
replacement |
true |
Replacement for matches in the calling String. |