When using the pattern, regular expressions do not work with Cyrillic

(Михаил Кабаков) #1

When creating Tokenizers, I want to use the following pattern:
@Tokenizers(tokenizers => tokenizers.Pattern("nuget-id-tokenizer", p => p.Pattern(@"\wа-яА-Я+"))
But it doesn't work, although it works great in an online regular expression editor.
This expression returns me spaces instead of words. Stack .net C#. What am I doing wrong?