Well, I ran into a small problem, I've programmed a great fast forum, but can not get rid of ONE bug... My forum supports smart tags, i.e. [TAGS] [/TAGS] and I of course use regular expressions to handle those... for example, the quote handler looks like this:
$data = preg_replace("/[QUOTE](.*?)[\/QUOTE].(([\r\n])[\s]+)?/si", "<blockquote>$q:<hr size=\"1\" noshade><i>\1</i><hr size=\"1\" noshade></blockquote>", $data);
BUT, if there are no new line charachters AFTER the tag [/QUOTE] I loose the first letter of whatever is there... CAN SOMEONE HELP ME PLEASE TO FIX THIS?...
to see this BUG in action, go to my forum
http://www.ita-studio.com/forum/
and try typing something like as a message:
First letter is gone
No problems with quote