Lines Matching refs:matches

50       function($matches) {
51 if(!preg_match("/image/",$matches[1])) {
54 return $matches[0];
60 function($matches) {
61 list($ext,$base) = explode(";",$matches[2]);
63 …(function_exists("imagecreatefromstring") && !imagecreatefromstring (base64_decode($matches[3]))) {
80 $fn = md5($matches[3]) . ".$ext";
90 @file_put_contents($path, base64_decode($matches[3]));
94 …me(), $id, DOKU_CHANGE_TYPE_CREATE, $lang["created"],"", null, strlen(base64_decode($matches[3])));
101 if($matches[1]) $left .= $matches[1];
102 if($matches[4]) $right = $matches[4] . $right;
114 function($matches) {
115 … $matches[1] = preg_replace("/%([A-F0-9]{1,3})/i", "URLENC_PERCENT$1", $matches[1]);
116 … $matches[2] = preg_replace("/%([A-F0-9]{1,3})/i", "URLENC_PERCENT$1", $matches[2]);
117 … $matches[3] = preg_replace("/%([A-F0-9]{1,3})/i", "URLENC_PERCENT$1", $matches[3]);
118 return $matches[1].$matches[2].$matches[3];
132 function($matches) {
133 return str_replace("\n", "__code_NL__",$matches[0]);
156 function($matches) {
157 return preg_replace("/\\\\\\\\/ms","\n",$matches[0]);
164 function($matches) {
165 return preg_replace("/^\s+/ms","",$matches[0]);
175 function($matches) {
176 return "((" . trim($matches[1]) . "))";
187 function($matches) {
188 return '<code ' . $matches[1] .' ' . $matches[2] .'>';
200 function($matches){
201 … if($this->helper->has_plugin('button') && strpos($matches[0], '[[{') === 0) {
202 return $matches[0];
204 if(preg_match('/[\w\.]+\s*>/',$matches[0])) {
205 return $matches[0];
207 if(preg_match('/([\w\.\-]+@[\w\.\-]+\.\w{2,3})\?.*?\|\1/i',$matches[0])) {
208 return $matches[0];
212 … if(preg_match("/\[\[http/",$matches[0])) return $matches[0]; //not an internal link
213 … if(preg_match("#\[\[.*?\|\{\{.*?\}\}\]\]#", $matches[0],$matches_1)) { // media file
215 return $matches[0];
217 $link = explode('?',$matches[1]);
220 … return preg_replace("#$link_id#",$current_id, $matches[0]);
223 $link = explode('?',$matches[1]);
255 function($matches) {
257 $link = explode('?',$matches[2]);
262 return '{{' .$matches[1] . $rel . $matches[3] .'}}';
273 function($matches) {
274 $matches[1] = preg_replace("/<font.*?>/ms","",$matches[1]);
275 return preg_replace("/<\/font>/ms","",$matches[1]);
286 function($matches) {
287 $matches[2]=preg_replace("/^\s+/ms","",$matches[2]);
288 $matches[2]=preg_replace("/\s+$/ms","",$matches[2]);
289 return $matches[1]. $matches[2];
308 function($matches) {
309 return str_replace('\\',"",$matches[0]);
319 function($matches) {
320 …$matches[0] = preg_replace("/([\S\s\w\:])\\\\\\\\(\w)/ms","$1@#@$2",$matches[0]); //retain backsla…
321 $matches[0] = preg_replace("/(\w+)\\\\\\\\(\w)/ms","$1@#@",$matches[0]);
322 $matches[0] = preg_replace("/\\\\(\w+)/ms","@!@$1",$matches[0]);
323 $matches[0] = preg_replace("/(\w+)\\\\/ms","@!@$1",$matches[0]);
324 $matches[0] = str_replace("\\", "",$matches[0]);
325 $matches[0] = str_replace("@!@",'\\',$matches[0]);
326 return str_replace("@#@", "\\\\",$matches[0]);
333 function($matches) {
335 $matches[3] = preg_replace('/\n+/',"",$matches[3] );
336 $matches[3] = preg_replace('/\s+$/',"",$matches[3] ) . '|';
337 return '|' . $matches[1] . $matches[2] . str_replace("\\ ","",$matches[3]);
348 function($matches) {
349 return '|' . $matches[1] ."\n<". $matches[2] .'>' . "\n";
355 function($matches) {
356 $matches[2] = str_replace(':\\', '~~WIN__DIR~~',$matches[2]);
357 …$matches[2] = preg_replace('#([\w;.:=\:])\\\\#ms', "$1_bSL_",$matches[2]); //protect backslashes …
358 $ret = '</' . $matches[1] . '>' . str_replace("\\","",$matches[2]);
408 function($matches) {
409 global $ents; return $ents[$matches[2]];