Code: Select all
$bb-replace = array ('#(\[link=)(.+)(\])(.+)(\[\/link\])#','#(\[img=)(.+)(\])#','#(\[profile=)(\d+)(\])(.+)(\[\/profile\])#','#(\[color=)(.+)(\])(.+)(\[\/color\])#');
$bb-replacements = array ('<a href="\\2">\\4</a>','<img src="\\2" />','<a href="game.php?where=profile&$thestamp&who=//2">//4</a>','<font color="//2">//4</font>');