I have a regular expression of a character set of special characters which I want to replace. The regex I use is "[,.;:/\]"
and I get error Unterminated []
set. How do I fix this?
Regex.replace(string,"[,.;:/\]"," ")
I have a regular expression of a character set of special characters which I want to replace. The regex I use is "[,.;:/\]"
and I get error Unterminated []
set. How do I fix this?
Regex.replace(string,"[,.;:/\]"," ")
Does this match all of the characters within the square brackets? Including both forward slash and backslash