f/htmlToPCREPattern/htmlToPCREPattern.php
/**
     * @function htmlToPCREPattern
     * @param $pattern {String} html regular expression pattern
     * @return pcre compliant pattern
     **/
@function htmlToPCREPattern
@param $pattern {String} html regular expression pattern
@return pcre compliant pattern
@function htmlToPCREPattern @param $pattern { String } html regular expression pattern @return pcre compliant pattern
function htmlToPCREPattern($pattern)
    {
        $unicodePattern = "/\\\u([0-9A-Fa-f]{4})/";
        $pattern = preg_replace($unicodePattern, "\\\x{\\1}", $pattern);
        return $pattern;
    }
function htmlToPCREPattern ( $ pattern ) { $ unicodePattern = " / \\ \u ([0-9A-Fa-f]{4})/ " ; $ pattern = preg_replace ( $ unicodePattern , " \\ \x{ \\ 1} " , $ pattern ) ; return $ pattern ; }
@function htmlToPCREPattern
 @param $pattern {String} html regular expression pattern
 @return pcre compliant pattern
@function htmlToPCREPattern @param $pattern { String } html regular expression pattern @return pcre compliant pattern
//replace \u1278 with \x{1278}