Menu
I have used this script:
[CODE]someString.replace(/[^A-Za-z0-9 .]/g, ”)
…many times to remove non-alphanumeric and non “.” and ” ” characters but am having to re-think its use as I start working on non-American English languages for string replacement. The reason for this is that this RegExp also pulls out special characters such as “ó” and “ñ”. I’m not certain, but I think it would also remove all double-byte characters such as various Asian-language words.
Has anyone run into this problem and have they found a simple coding solution to catch all non-English special characters?
Yours,
Dave