File size: 710B
<?php
$search = array(
"/\[url=(['\"]?)([^\"']*)\\1](.*)\[\/url\]/siU",
"#\*(.*?)\*#is",
"#\[i\](.*?)\[/i\]#is",
"#\[u\](.*?)\[/u\]#is",
"#\[s\](.*?)\[/s\]#is",
"#\[red\](.*?)\[/red\]#is",
"#\[green\](.*?)\[/green\]#is",
"#\[pink\](.*?)\[/pink\]#is",
"#\[blue\](.*?)\[/blue\]#is",
"#\[br\](.*?)\[/br\]#is",
"#\[div\](.*?)\[/div\]#is",
);
$replace = array(
"<a href=\"\\2\"><font color=\"#0000ff\">\\3</font></a>",
"<b>\\1</b>",
"<i>\\1</i>",
"<u>\\1</u>",
"<s>\\1</s>",
"<font color=\"red\">\\1</font>",
"<font color=\"green\">\\1</font>",
"<font color=\"pink\">\\1</font>",
"<font color=\"blue\">\\1</font>",
"<br/>",
"<div class=\"d1\">\\1</div>",
);
?>