1

I need to match all alphabetic characters (not only [a-zA-Z], but really all of them including ö, ß, â, ç, Æ, Å, Ĺ, Ĩ, Ÿ, Ș, њ, ѝ, Ц, ت, ר). In other programming languages there is character class named [:alpha:] for this, because it is virtually impossible to name all alpha characters from all alphabets in brackets.

\w doesn't help because it includes digits and underscore. I need letters only without digits, punctuation, spaces.

t.niese
  • 39,256
  • 9
  • 74
  • 101
Holger Jakobs
  • 984
  • 3
  • 11
  • 32

1 Answers1

4

If you can use XRegExp, use. It has support for Unicode. Otherwise you have to enumerate the ranges yourself.

phadej
  • 11,947
  • 41
  • 78
  • So actually, I haven't missed anything, current JavaScript is plain unable to to it without additional libraries or enumerating lots of Unicodes. – Holger Jakobs Jan 26 '15 at 14:57