RegExp and UTF-8 Characters
I am relatively new to Java and RegExp.
At the moment I am building a socket server where I use UTF-8 control characters (\u0000 - \u0007) for special messages.
What I am looking for is a RegExp pattern to convert all of these to a $ symbol. My main problem is actually specifying the characters in the RegExp.
But this doesn't work and it is what I need:
myNewString = myString.replaceAll("\u0000", "$")
Thanks for your help and reading,
myNewString = myString.replaceAll("[\u0000-\u0007]", "$")