fork(1) download
  1. <?php
  2.  
  3.  
  4. $numberTelephone='8927-54-54-305';
  5. $regexp='/(\d+)(\D+)(\d+)/';
  6. $result=preg_replace($regexp, '$1$3', $numberTelephone);
  7. echo "$result\n";
Success #stdin #stdout 0s 82624KB
stdin
Standard input is empty
stdout
892754-54305