String.replaceFirst()
Signature
String replaceFirst (String s1, String regex, String replacement)
Domain
ACTION, CONDITION, QUERY, BUI
Description
Replaces the first 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 | s1 is to be matched. |
replacement | String | 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