Lines Matching refs:link
229 $link = preg_replace(array('/^\[\[/', '/\]\]$/u'), '', $match);
232 $link = explode('|', $link, 2);
233 if(!isset($link[1])) {
234 $link[1] = null;
235 } else if(preg_match('/^\{\{[^\}]+\}\}$/', $link[1])) {
237 $old_title = $link[1];
238 $link[1] = $this->rewrite_media($link[1]);
242 $match = substr_replace($match, $link[1], $oldpos, $oldlen);
244 $link[0] = trim($link[0]);
248 if(preg_match('/^[a-zA-Z0-9\.]+>{1}.*$/u', $link[0])) {
251 } elseif(preg_match('/^\\\\\\\\[^\\\\]+?\\\\/u', $link[0])) {
254 } elseif(preg_match('#^([a-z0-9\-\.+]+?)://#i', $link[0])) {
257 } elseif(preg_match('<' . PREG_PATTERN_VALID_EMAIL . '>', $link[0])) {
260 } elseif(preg_match('!^#.+!', $link[0])) {
264 $id = $link[0];
294 if($link[1] != null) {
295 $new_id .= '|' . $link[1];