Lines Matching refs:link
59 $link = preg_replace(array('/^\[\[/', '/\]\]$/u'), '', $match);
61 $link = explode('|', $link, 2);
62 if (!isset($link[1])) {
63 $link[1] = NULL;
64 } else if (preg_match('/^\{\{[^\}]+\}\}$/', $link[1])) {
66 $link[1] = Doku_Handler_Parse_Media($link[1]);
68 $link[0] = trim($link[0]);
70 if (!(preg_match('/^[a-zA-Z0-9\.]+>{1}.*$/u', $link[0]) ||
71 preg_match('/^\\\\\\\\[\w.:?\-;,]+?\\\\/u', $link[0]) ||
72 preg_match('#^([a-z0-9\-\.+]+?)://#i', $link[0]) ||
73 preg_match('<' . PREG_PATTERN_VALID_EMAIL . '>', $link[0]) ||
74 preg_match('!^#.+!', $link[0]))
91 … if (empty($link[0])) { break; } // No empty elements. This would lead to problems
92 return array($link[0], $link[1], $depth);