Altering my BBcode to be a little bit better and now im getting errors.
$ubbs1[0] = '/\[b\]/ (.*?) /\[\/b\]/';
$ubbs2[0] = '<b>\1</b>';
$bbcoded_message = preg_replace($text1, $text2, $message);
I get this:
Warning: preg_replace(): Unknown modifier '(' in ///*/public_html/members/pforum/f_func.php on line 162
$ubbs1[0] = '\[b\](.*?)\[/b\]';
$ubbs2[0] = '<b>\1</b>';
$bbcoded_message = preg_replace($text1, $text2, $message);
I get this:
Warning: preg_replace(): Delimiter must not be alphanumeric or backslash in ///*/public_html/members/pforum/f_func.php on line 162