Max Dyachenko Max Dyachenko - 5 months ago 34
Javascript Question

JS regex - how to add the spaces to the symbols that i have found using RegExp

i am looking for the symbols using this regular expression


I'd like to add the spaces between these symbols with both sides.
For example:
"Hello,my name is Max"

I'd like this string to look like
"Hello , my name is Max"

How can i do this? Thanks.


Try this:


and replace by