😃
I am trying to make a BBCode parsing function, like forums use. But im stuck :mad:
Here is my code:
$text = preg_replace("/\[vb\](.*?)\[\/vb\]/si","
<b>VB:</b>
<table>
<tr>
<td>".
FormatVB("\\1")
."
</td>
</tr>
</table>",$text); //VB Code
However, the highlighting function is given "\1" as the perameter, rather than the text between the tags, which is what i want.
The same thing happens when i try to use the PHP highlighting function (highlight_string) which i want to be able to use too.
Anyone able to help??
Thanks!!!!