Lines Matching refs:matches

110 …match("#(.*?)(<([a-z\d]+)[^>]*/>|<([a-z\d]+)[^>]*(?<!/)>|</([a-z\d]+)[^>]*>)#is",$html,$matches)) {
111 $result .= $matches[1];
112 $html = substr($html, strlen($matches[0]));
115 if (isset($matches[5])) {
116 $tag = $matches[5];
122 $result .= $matches[2];
160 } elseif (isset($matches[4])) {
162 $tag = $matches[4];
164 $result .= $matches[2];
167 $result .= $matches[2];
184 while (preg_match("!(<[^>]*)\s([^=>]+)=([^'\"\r\n >]+)([\r\n >])!si",$html, $matches)) {
215 while (preg_match("#^(.*)(<[^>]*)\s([^\s=>]+)=(['\"])([^\\4]*?)\\4(.*)$#si", $html, $matches)) {
216 $new_value = escape_attr_value_entities($matches[5]);
218 $result .= $matches[1].$matches[2]." ".$matches[3]."=".$matches[4].$new_value.$matches[4];
219 $html = $matches[6];
236 if (preg_match("#(<)(.*?)(/\s*>)#is",$tag, $matches)) {
237 $prefix = $matches[1];
238 $suffix = $matches[3];
239 $content = $matches[2];
240 } elseif (preg_match("#(<)(.*?)(>)#is",$tag, $matches)) {
241 $prefix = $matches[1];
242 $suffix = $matches[3];
243 $content = $matches[2];
248 if (preg_match("#^\s*(\w+)\s*(.*)\s*/\s*\$#is", $content, $matches)) {
249 $tagname = $matches[1];
250 $raw_attrs = isset($matches[2]) ? $matches[2] : "";
251 } elseif (preg_match("#^\s*(\w+)\s*(.*)\$#is", $content, $matches)) {
252 $tagname = $matches[1];
253 $raw_attrs = isset($matches[2]) ? $matches[2] : "";
262 if (preg_match("#^\s*(\w+?)\s*=\s*\"(.*?)\"(.*)$#is",$raw_attrs,$matches)) {
263 $attr = strtolower($matches[1]);
264 $value = $matches[2];
270 $raw_attrs = $matches[3];
271 } elseif (preg_match("#^\s*(\w+?)\s*=\s*'(.*?)'(.*)$#is",$raw_attrs,$matches)) {
272 $attr = strtolower($matches[1]);
273 $value = $matches[2];
279 $raw_attrs = $matches[3];
280 } elseif (preg_match("#^\s*(\w+?)=(\w+)(.*)$#is",$raw_attrs,$matches)) {
281 $attr = strtolower($matches[1]);
282 $value = $matches[2];
288 $raw_attrs = $matches[3];
289 } elseif (preg_match("#^\s*\S+\s+(.*)$#is",$raw_attrs,$matches)) {
291 $raw_attrs = $matches[1];
316 while (preg_match("#^(.*?)(<[^/].*?>)#is",$html,$matches)) {
317 $result .= $matches[1].fix_attrs_tag($matches[2]);
318 $html = substr($html, strlen($matches[0]));
438 …preg_match_all('#<textarea(.*)>(.*)<\s*/\s*textarea\s*>#Uis', $html, $matches, PREG_OFFSET_CAPTURE…
443 for ($i = count($matches)-1; $i>=0; $i--) {
444 $match = $matches[$i];
460 while (preg_match("#^(.*?)(</?)([a-zA-z0-9]+)([\s>])#is",$html,$matches)) {
462 $html = substr($html,strlen($matches[0]));
464 $result .= $matches[1].$matches[2].strtolower($matches[3]).$matches[4];
473 while (preg_match("#^(.*?)(<)([a-zA-z0-9]+)(\s*/\s*>)#is",$html,$matches)) {
475 $html = substr($html,strlen($matches[0]));
477 $result .= $matches[1].$matches[2].strtolower($matches[3]).$matches[4];