fork(2) download
  1. <?php
  2. $reg_exp='/[\\w \\d]+^(,\\S) [\\w \\d]+/';
  3. $text="Здесь не пропущен пробел, после запятой";
  4. if (preg_match($reg_exp, $text))
  5. {
  6. echo "Ошибок нет";
  7. }
  8. else echo "Ошибка в тексте";
  9. // your code goes here
Success #stdin #stdout 0.01s 20520KB
stdin
Standard input is empty
stdout
Ошибка в тексте