Hey guys,
I’m not too good with regex in flash. Basically I am using UTF-8 characters codes \u0000 to \u0008 as part of a socket server.
I need a little regex pattern to replace these chars with somthing like a $ symbol to make them really obvious (while tracing output etc…).
I believe it should be something like:
filter:RegExp = new RegExp("[\u0000\u0001\u0002\u00..]");
myNewString = myString.replace(filter, "%")
Doesn’t appear to be working at the moment… could anyone shed some light on things?
Thank you very much for reading,
Dan