$regex = '/(.*)/'; $ret = preg_match($regex, $string, $matches); print_r($matches);