This function replaces the first substring matching the given regular expression with the given replacement. |
replaceFirst(text, regex, replacement) #Output : Text |
|
Parameters used in this function
|
This function returns a |
If you want to replace all matching occurrences with the replacement, have a look at the replaceAll() function.
|
|
|