String.replaceAll()
Signature
String replaceAll (String s1, String regex, String replacement)
Domain
action, condition, query
Description
Replaces each substring of this string that matches the given
regular expression with the given replacement.
Parameters
Name | Type | Description |
s1 | String | A String to replace characters in. |
regex | String | The regular expression to which the String
s1 is to be matched. |
replacement | String | A String to replace regular expression matches with. |
Returns
Type | Description |
String | A string derived from the String s1 by
replacing every occurrence of the regular expression with replacement . |
See Also
java.util.regex.Pattern