Features of Cyrillic in JavaScript Regex
Cyrillic characters are not included in the
\w group. To get them, you need to use
a group in square brackets, like this: [а-я].
But even with this group, there is a problem -
the letter 'ё' will not be included here.
To include it, you need to do this: [а-яё].
Given a string:
let str = 'wйw wяw wёw wqw';
Write a regular expression that finds strings
matching the pattern: letters 'w'
stand at the edges, and between them - a Cyrillic letter.
Given a string:
let str = 'ааа ббб ёёё ззз ййй ААА БББ ЁЁЁ ЗЗЗ ЙЙЙ';
Write a regular expression that finds all words matching the pattern: any Cyrillic letter any number of times.