<?php
function Grammar($text) {
$regexp = '/(\.|,|:|!|\?|)\S|жы|шы/u';
echo "Внимание, обнаружена ошибка!";
}
else {
echo "Ошибок не обнаружено.";
}
}
Grammar('жы шы пиши с буквой и');
PD9waHAKCWVycm9yX3JlcG9ydGluZygtMSk7CglmdW5jdGlvbiBHcmFtbWFyKCR0ZXh0KSB7CgkJJHJlZ2V4cCA9ICcvKFwufCx8OnwhfFw/fClcU3zQttGLfNGI0YsvdSc7CgkJaWYgKHByZWdfbWF0Y2goJHJlZ2V4cCAsICR0ZXh0KSl7CgkJCWVjaG8gItCS0L3QuNC80LDQvdC40LUsINC+0LHQvdCw0YDRg9C20LXQvdCwINC+0YjQuNCx0LrQsCEiOwoJCX0KCQllbHNlIHsKCQkJZWNobyAi0J7RiNC40LHQvtC6INC90LUg0L7QsdC90LDRgNGD0LbQtdC90L4uIjsKCQl9Cgl9CglHcmFtbWFyKCfQttGLINGI0Ysg0L/QuNGI0Lgg0YEg0LHRg9C60LLQvtC5INC4Jyk7Cgk=