Regexp question
Gidday
I have a regexp that eliminates characters that aren't alphanumeric or )('$!-&?,. and then eliminates consecutive spaces:
nS = nS.replace(/[^\w\s\)\('$\!\-&,\.]/gi, "");
nS = nS.replace(/[\s]{2,}/g, " ");
I was wondering how it needs to be altered to also allow non-english characters such as accented ones like á and Asian types such as あ?
Cheers for your help
