// matches a [
url]rel://viewtopic.php[/
url] code..
$patterns[] = "#\[
url\](rel://[\./]*([^ \"\n\r\t<]*?))\[/
url\]#is";
$replacements[] = $bbcode_tpl['url5'];
// matches a [
url]xxxx://www.phpbb.com[/
url] code..
$patterns[] = "#\[
url\]([\w]+?://([\w\#$%&~/.\-;:=,?@\]+]|\[(?!
url=))*?)\[/
url\]#is";
$replacements[] = $bbcode_tpl['url1'];
// [
url]www.phpbb.com[/
url] code.. (no xxxx:// prefix).
$patterns[] = "#\[
url\]((www|
ftp)\.([\w\#$%&~/.\-;:=,?@\]+]|\[(?!
url=))*?)\[/
url\]#is";
$replacements[] = $bbcode_tpl['url2'];
// matches a [
url=rel://viewtopic.php]view topic[/
url] code..
$patterns[] = "#\[
url\=(rel://[\./]*([\w\#$%&~/.\-;:=,?@\[\]+]*?))\](.*?)\[/
url\]#is";
$replacements[] = $bbcode_tpl['url6'];
// [
url=xxxx://www.phpbb.com]phpBB[/
url] code..
$patterns[] = "#\[
url=([\w]+?://[\w\#$%&~/.\-;:=,?@\[\]+]*?)\]([^?\n\r\t].*?)\[/
url\]#is";
$replacements[] = $bbcode_tpl['url3'];
// [
url=www.phpbb.com]phpBB[/
url] code.. (no xxxx:// prefix).
$patterns[] = "#\[
url=((www|
ftp)\.[\w\#$%&~/.\-;:=,?@\[\]+]*?)\]([^?\n\r\t].*?)\[/
url\]#is";
$replacements[] = $bbcode_tpl['url4'];