<?php
$input = <<<EOF
МУУ ГООУО ОПП по Удмуртской Области объявляет
конкурс на пoстaвку кaнцелярских товаров
на сумму 100500 руб. Sаmple.
EOF;
"RU" => "/\b(([А-ЯЁа-яё]+)([AaBCcEeHKMOoPpT]+))+([А-ЯЁа-яё]*)/u",
"EN" => "/\b(([A-Za-z]+)([АаВСсЕеНКМОоРрТ]+))+([A-Za-z]*)/u",
);
foreach($regexp as $rule){
foreach($match[0] as $wrongText){
echo "Опечатка в слове {$wrongText}: ";
echo $wrongText."\n";
}
}
PD9waHAKZXJyb3JfcmVwb3J0aW5nKC0xKTsKCiRpbnB1dCA9IDw8PEVPRgrQnNCj0KMg0JPQntCe0KPQniDQntCf0J8g0L/QviDQo9C00LzRg9GA0YLRgdC60L7QuSDQntCx0LvQsNGB0YLQuCDQvtCx0YrRj9Cy0LvRj9C10YIK0LrQvtC90LrRg9GA0YEg0L3QsCDQv2/RgdGCYdCy0LrRgyDQumHQvdGG0LXQu9GP0YDRgdC60LjRhSDRgtC+0LLQsNGA0L7QsgrQvdCwINGB0YPQvNC80YMgMTAwNTAwINGA0YPQsS4gU9CwbXBsZS4KRU9GOwoKJHJlZ2V4cCA9IGFycmF5KAoJIlJVIiA9PiAiL1xiKChb0JAt0K/QgdCwLdGP0ZFdKykoW0FhQkNjRWVIS01Pb1BwVF0rKSkrKFvQkC3Qr9CB0LAt0Y/RkV0qKS91IiwKCSJFTiIgPT4gIi9cYigoW0EtWmEtel0rKShb0JDQsNCS0KHRgdCV0LXQndCa0JzQntC+0KDRgNCiXSspKSsoW0EtWmEtel0qKS91IiwKCSk7CmZvcmVhY2goJHJlZ2V4cCBhcyAkcnVsZSl7CgkkbWF0Y2ggPSBhcnJheSgpOwoJcHJlZ19tYXRjaF9hbGwoJHJ1bGUsICRpbnB1dCwgJG1hdGNoKTsKCWZvcmVhY2goJG1hdGNoWzBdIGFzICR3cm9uZ1RleHQpewoJCWVjaG8gItCe0L/QtdGH0LDRgtC60LAg0LIg0YHQu9C+0LLQtSB7JHdyb25nVGV4dH06ICI7CgkJJHdyb25nVGV4dCA9IHByZWdfcmVwbGFjZSgkcnVsZSwgJyQyWyQzXSQ0JywgJHdyb25nVGV4dCk7CgkJZWNobyAkd3JvbmdUZXh0LiJcbiI7Cgl9Cn0=