Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
([А-Яа-яЁё]+[БбВвГгДдЖжЗзКкЛлМмНнПпРрСсТтФфХхЦцШшЩщ])([ЕеИиОоЫы][Йй]|[АаИиЯя][Яя]|[ИиУуЮю][Юю]|[ЕеИиОоЫы][Ее]|[Мм][ИиУу]|[ОоЕе][Гг][Оо]|[Ии]?[АаЕеОоЫыЯя][Мм]|[АаИи]|[ОоСсТт]{3}[Ьь]|(?<![ОоСсТт]{3})[Ьь]|[АаОо][Вв]|[АаЕеИиОо]|[Нн][АаЕеИиОо]|[Сс][Аа]|[УуЫы]|[ЕеОо][Кк]|[ИиЫы][Хх]|[АаЕеЁёИиОоУуЫыЭэЮюЯя]+)$
/
gm

Description

Removed capital leters. It now works a bit better/ Some russian words have "-" in them, made sure that it does not break grabbed endings

Submitted by anonymous - 5 years ago