i really suck at regular expressions
preg_replace('/[b]/','<b>',$description); preg_replace('/[/b]/','</b>',$description);
should match something like:
[b]ANY TEXT[/b]
and make it:
<b>ANY TEXT</b>
i also tried
preg_replace("#\[b\](.*?)\[/b\]#","<b>\\1</b>",$description);
but to no avail...
Why not just use str_replace()
$str = str_replace(array('[b]', '[/b]'), array('<b>', '</b>'), $description);
to yes avail.
worked like a charm!
ty sir!