Hi to all, hi have the following problem, I hope someone can help me.
I need to replace special chars that appear in a string.
for example if I have the string:
this- is a !string with special chars-
I want to receive
this45 is a 33string with special chars45
* The numbers in the string are the ascii code of every char.
I try using the "replace" method, but only work with the first char appearance of the char, if I the char appear more that once in the string
the replace method replace only the first appearance.
for example if I have the string:
this- is a !string with special chars-
I receive:
this45 is a 33string with special chars-
Leaving the second '-' without changing it.
Thanks