fork download
  1. <?php
  2.  
  3. $str = "xxx:'2015-10-09 15:05'";
  4. if (preg_match("/(?<=')[^']+/", $str, $m)) {
  5. var_dump( $m );
  6. }
Success #stdin #stdout 0.02s 52472KB
stdin
Standard input is empty
stdout
array(1) {
  [0]=>
  string(16) "2015-10-09 15:05"
}