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

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?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.