fork download
  1. <?php
  2.  
  3. $str = "before5555555555after";
  4. $regex = '/(?:(?:\(?(?:00|\+)([1-4]\d\d|[1-9]\d?)\)?)?[\-\.\ \\\/]?)?((?:\(?\d{1,}\)?[\-\.\ \\\/]?){0,})(?:[\-\.\ \\\/]?(?:#|ext\.?|extension|x)[\-\.\ \\\/]?(\d+))?/';
  5. preg_match($regex, $str, $match);
  6.  
  7. var_dump($match);
  8.  
  9. ?>
  10.  
Success #stdin #stdout #stderr 0s 82880KB
stdin
Standard input is empty
stdout
NULL
stderr
PHP Warning:  preg_match(): Unknown modifier ']' in /home/DgdZ08/prog.php on line 5