jBBCode — a flexible, extensible BBCode parser
jBBCode is a fast, lightweight but extremely flexible bbcode parser written in PHP 5. It's designed to parse quickly and efficiently but still allow for complex bbcodes. The parser does not use regular expressions, avoiding their high overhead and enabling quicker parsing.
More than just text replacement
jBBCode allows you to extend its CodeDefinition class. Through defining new code definitions, you can use all the power of PHP in evaluating your custom bbcodes.