KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have strings in Spanish and other languages that may contain generic special characters like (),*, etc. That I need to remove. But the problem is that it also may contain special language characters like ñ, á, ó, í etc and they need to remain. So I am trying to do it with regexp the following way: var desired = stringToReplace.replace(/[^\w\s]/gi, ''); Unfortunately it is removing all special characters including the language related. Not sure how to avoid that. Maybe someone could suggest?
Tags (comma-separated)
Save Edits
Cancel