fork download
  1. <?php
  2.  
  3. $page = "test123";
  4. if (preg_match("/test(\d*)/i", $page)) {
  5. echo "ЕСТЬ $1";
  6. } else {
  7. echo "НЕТ";
  8. }
Success #stdin #stdout 0.02s 52432KB
stdin
Standard input is empty
stdout
ЕСТЬ $1