<?php $str = "xxx:'2015-10-09 15:05'";var_dump( preg_replace("/^xxx:'([^']*)'$/", '$1', $str) );
Standard input is empty
string(16) "2015-10-09 15:05"
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!