fork(1) download
  1. <?php
  2. $matches=array();
  3. $regExp="/(,\\S|жы|шы|координально|сдесь| здел|[^,.]\\sа |[^,]\\sно[\\.\\,]? )/ui";
  4. $text="Зделай-ка мне бочку";
  5. if (preg_match($regExp, $text, $matches))
  6. {
  7. echo "В тексте ошибка: {$matches[0]}";
  8.  
  9. }
  10. else
  11. {
  12. echo "Ошибок нет";
  13. }
  14.  
  15. // your code goes here
Success #stdin #stdout 0.01s 20520KB
stdin
Standard input is empty
stdout
Ошибок нет