Regex for colon in an xml tag when parsing fails with php and simplexml_load_string

JoeisaMinas060

New Member
In a follow up to my http://stackoverflow.com/questions/...ting-unknown-attributes-of-xml-nodes-with-phpUPDATE:This regex matches the required content:\[code\]preg_match('/<content\:encoded>(.*)<\/content\:encoded>/msU',$string,$matches);\[/code\]The m and s and U modifiers are explained better here:http://www.php.net/manual/en/reference.pcre.pattern.modifiers.phpI neglected to consider these modifiers.The results are now brought back by this regex, including the original problem, so this can now be resolved.
 
Back
Top