How to match Cyrillic characters with a regular ex

2019-01-03 16:49发布

How do I match French and Russian Cyrillic alphabet characters with a regular expression? I only want to do the alpha characters, no numbers or special characters. Right now I have

[A-Za-z]

7条回答
Viruses.
2楼-- · 2019-01-03 17:41

Various regex dialects use [:alpha:] for any alphanumeric character in the current locale. (You may need to put that in a character class, e.g. [[:alpha:]].)

查看更多
登录 后发表回答