Lines Matching refs:matches
179 function($matches){
182 … if(preg_match("/\[\[http/",$matches[0])) return $matches[0]; //not an internal link
183 if(preg_match("#\[\[.*?\|\{\{.*?\}\}\]\]#", $matches[0],$matches_1)) {
185 return $matches[0];
187 $link = explode('?',$matches[1]);
190 … return preg_replace("#$link_id#",$current_id, $matches[0]);
193 $link = explode('?',$matches[1]);
218 function($matches) {
220 $link = explode('?',$matches[2]);
225 return '{{' .$matches[1] . $rel . $matches[3] .'}}';
266 function($matches) {
267 return str_replace('\\',"",$matches[0]);
277 function($matches) {
278 …$matches[0] = preg_replace("/([\S\s\w\:])\\\\\\\\(\w)/ms","$1@#@$2",$matches[0]); //retain backsla…
279 $matches[0] = preg_replace("/(\w+)\\\\\\\\(\w)/ms","$1@#@",$matches[0]);
280 $matches[0] = preg_replace("/\\\\(\w+)/ms","@!@$1",$matches[0]);
281 $matches[0] = preg_replace("/(\w+)\\\\/ms","@!@$1",$matches[0]);
282 $matches[0] = str_replace("\\", "",$matches[0]);
283 $matches[0] = str_replace("@!@",'\\',$matches[0]);
284 return str_replace("@#@", "\\\\",$matches[0]);
293 function($matches) {
294 $matches[3] = preg_replace('/\n+/',"",$matches[3] );
295 $matches[3] = preg_replace('/\s+$/',"",$matches[3] ) . '|';
296 return '|' . $matches[1] . $matches[2] . str_replace("\\ ","",$matches[3]);