0

This question is identical to Regular Expressions: How to Express \w Without Underscore, except that the goal is to match characters in the letter (L) general category plus a specified set of additional characters.

For example, [-$\a\d]+ would match identifiers like $gâteau-Noël-19 but not $gâteau_Noël-19, if a hypothetical \a letter class existed. But for some bizarre and incomprehensible reason it does not.

So the clumsy substitute suggested in the previous question, [^\W_], works fine as a replacement for \a by itself. But how can it be combined with additional characters to form the above regular expression?

Dave
  • 3,834
  • 2
  • 29
  • 44

0 Answers0