JavaScript + Unicode regexes

How can I use Unicode-aware regular expressions in JavaScript?

For example, there should be something akin to \w that can match any code-point in Letters or Marks category (not just the ASCII ones), and hopefully have filters like [[P*]] for punctuation, etc.

70 thoughts on “JavaScript + Unicode regexes”

Leave a Comment