fork(1) download
  1. <?php
  2. $matches=array();
  3. $regExp="/(,\\S|жы|шы|координально|сдесь|здел|[^,]\\sа|[^,]\\sно)/";
  4. $text="зашитая, без пробела но cдесь кардинально зделан";
  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 20568KB
stdin
Standard input is empty
stdout
В тексте ошибка � но