Page 1 of 1

No HTML, mabey BBCode!

Posted: Sun Jun 13, 2004 6:04 pm
by Joe
I was curious if anyone knew any references to tutorials on BBCode in php. I have barred tags so no-one can use html but I wish for people to use bold, italic, and line break tags.

Thanks

Posted: Sun Jun 13, 2004 6:35 pm
by feyd
check evilwalrus.com there's a few bbcode scripts there.. :)

Posted: Tue Jun 15, 2004 4:51 pm
by tim
regEx

str_replace

simple example of a effective regEx:

preg_match('/:\)(?!\))/')

this would locate a :) but not a :)) and so on.

Posted: Wed Jun 16, 2004 4:28 am
by vigge89
posted my bbcode-formatting code on some topic, search this forum for BBCode and you'll probably find it ;)