Take an example string - "one, two, three, four"
- but this will replace only the first occurrence of "," which will give the result as
"one two, three, four"
if you want to remove all occurrences of the string, following RegExp can be used.
This will give output as "one two three four"