fork(1) download
  1. <?php
  2.  
  3. $str = "xxx:'2015-10-09 15:05'";
  4. var_dump( preg_replace("/^xxx:'([^']*)'$/", '$1', $str) );
Success #stdin #stdout 0.03s 52480KB
stdin
Standard input is empty
stdout
string(16) "2015-10-09 15:05"