<?php
$text = "Петр иваныч уркал шыну.";
$regexp = '/((шы|жы)|(\\.[а-я])|(\\.\\s+[а-я])|((,|!|?|;)|[а-я])|(координально|сдесь|зделал|зделаю|зделан))/';
$empty = '/\\s/';
for ($i = 0; $i <= (count($words)-1); $i++) {
echo "Здесь ошибка: \"{$words[$i]}\".\n";
}else {
echo "{$words[i]} - ошибки нет. \n";
}
}
}else {
echo "Текст написан без ошибок";
}
?>
PD9waHAgCgplcnJvcl9yZXBvcnRpbmcoLTEpOwptYl9pbnRlcm5hbF9lbmNvZGluZygndXRmLTgnKTsKCiR0ZXh0ID0gItCf0LXRgtGAINC40LLQsNC90YvRhyDRg9GA0LrQsNC7INGI0YvQvdGDLiI7CgokcmVnZXhwID0gJy8oKNGI0Yt80LbRiyl8KFxcLlvQsC3Rj10pfChcXC5cXHMrW9CwLdGPXSl8KCgsfCF8P3w7KXxb0LAt0Y9dKXwo0LrQvtC+0YDQtNC40L3QsNC70YzQvdC+fNGB0LTQtdGB0Yx80LfQtNC10LvQsNC7fNC30LTQtdC70LDRjnzQt9C00LXQu9Cw0L0pKS8nOwoKJGVtcHR5ID0gJy9cXHMvJzsKCmlmIChwcmVnX21hdGNoKCRyZWdleHAsICR0ZXh0KSl7Cgkkd29yZHMgPSBwcmVnX3NwbGl0KCRlbXB0eSwgJHRleHQpOwoJCglmb3IgKCRpID0gMDsgJGkgPD0gKGNvdW50KCR3b3JkcyktMSk7ICRpKyspCgl7CgkJaWYgKHByZWdfbWF0Y2goJHJlZ2V4cCwgJHdvcmRzWyRpXSkpewoJCQllY2hvICLQl9C00LXRgdGMINC+0YjQuNCx0LrQsDogXCJ7JHdvcmRzWyRpXX1cIi5cbiI7CgoJCSB9ZWxzZSB7CgkJCWVjaG8gInskd29yZHNbaV19IC0g0L7RiNC40LHQutC4INC90LXRgi4gXG4iOwoJCQoJfSAKCX0KfWVsc2UgewoJZWNobyAi0KLQtdC60YHRgiDQvdCw0L/QuNGB0LDQvSDQsdC10Lcg0L7RiNC40LHQvtC6IjsKfQo/Pg==