pcre_copy_substring(template) - phpMan