Hi All,
I have just spent a while searching how to use regular expression to strip out spaces in a string and replace them with ‘,’ I don’t seem to be getting anywhere and was hoping someone could explain how to do it.
So for example:
Mystring = “a b c d”
My string would end up looking like the following
Mystring = “A’,’b’,’c’,’d”
Thanks for any help.
I have just spent a while searching how to use regular expression to strip out spaces in a string and replace them with ‘,’ I don’t seem to be getting anywhere and was hoping someone could explain how to do it.
So for example:
Mystring = “a b c d”
My string would end up looking like the following
Mystring = “A’,’b’,’c’,’d”
Thanks for any help.