Good day. Help make RegExp for Cyrillic.
You must find certain characters in the string.
I tried it, it does not work correctly
/[ГОАОДРАЗНЯ]/ui That is, there is the word country and the regular must spell it.
Thank.
Good day. Help make RegExp for Cyrillic.
You must find certain characters in the string.
I tried it, it does not work correctly
/[ГОАОДРАЗНЯ]/ui That is, there is the word country and the regular must spell it.
Thank.
/\b[ГОДРАЗНЯ]+\b/ \b - means word boundary, i.e. The regular page will search for words consisting only of letters listed in square brackets.
2 times to write О in brackets is not necessary. Also the words ГРАД , ГОРОД , etc.
If you don’t add \b , it will scan everything where there is at least one letter from the list.
Source: https://ru.stackoverflow.com/questions/617015/
All Articles
/[ГОАОДРАЗНЯ]+/ui? - Yuri