Javascript regexp to remove special characters keeping language special characters?

Instead of whitelisting characters you accept, you could try blacklisting illegal characters.

Instead of whitelisting characters you accept, you could try blacklisting illegal characters: var desired = stringToReplace. Replace(/'`~! @#$%^&*()_|+-=?

;:'",. \{\}\\\\\//gi, '').

Var desired = stringToReplace. Replace(/\u0000-\u007F\W/gi, ''); might do the trick. See also this Javascript + Unicode question.

Did not work. Strings get cuttent weird. – Alex Dec 1 at 12:02 1 This regex does not make a lot of sense.

What did you want to express? – Tomalak Dec 1 at 12:11.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions