Regular expression unterminated set

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,"[,.;:/\]"," ")


give this a try, :slight_smile:

regex.Replace(string,"[/\:;.,]"," ")

main.xaml (13.6 KB)


Does this match all of the characters within the square brackets? Including both forward slash and backslash

yes, have you tried main.xaml file?