fork download
  1. <?php
  2.  
  3. $in = '/123.456.789.10:111213';
  4. preg_match_all('</(.+)[:]>', $in, $matches);
  5. var_dump($matches[1][0]);
Success #stdin #stdout 0.03s 13064KB
stdin
Standard input is empty
stdout
string(14) "123.456.789.10"