<?php
$text = "Oвес закyпка пoлимoрф прoдажa русский";
$splitExp = "/ /";
$regexp = "/([а-яё]?)([a-z])([а-яё])?/ui";
foreach ($parts as $word) {
echo "Опечатка в слове {$word}: " . preg_replace($regexp, '$1[$2]$3', $word) . "\n"; }
}
PD9waHAKCiR0ZXh0ID0gIk/QstC10YEg0LfQsNC6edC/0LrQsCDQv2/Qu9C40Lxv0YDRhCDQv9GAb9C00LDQtmEg0YDRg9GB0YHQutC40LkiOwokc3BsaXRFeHAgPSAiLyAvIjsKJHJlZ2V4cCA9ICIvKFvQsC3Rj9GRXT8pKFthLXpdKShb0LAt0Y/RkV0pPy91aSI7CgokcGFydHMgPSBwcmVnX3NwbGl0KCRzcGxpdEV4cCwgJHRleHQpOwoKZm9yZWFjaCAoJHBhcnRzIGFzICR3b3JkKSB7CglpZiAocHJlZ19tYXRjaCgkcmVnZXhwLCAkd29yZCkpIHsKCWVjaG8gItCe0L/QtdGH0LDRgtC60LAg0LIg0YHQu9C+0LLQtSB7JHdvcmR9OiAiIC4gcHJlZ19yZXBsYWNlKCRyZWdleHAsICckMVskMl0kMycsICR3b3JkKSAuICJcbiI7Cgl9Cn0K