hi, i'm wondering if anyone can help me i'm trying to convert [Font=fontname] to <font face="fontname">
i tried adapting the code i already had to work with this but it didnt work.
here is what i tried.
<?php
$pattern = "#\[FONT=(.*?)\]#";
$replacement = "<font class=\"\\1\">";
$string = preg_replace($pattern,$replacement,$string);
?>
and it just didnt work at all.
thank you for any help.
Jon