The main goal behind bb2html.php was speed and simplicity thus the syntax was made more rigid to accomodate those goals (see below). To achieve this speed we exclusively used the function str_replace over preg_replace (regular expression). Benchmarking those two functions shows around a 3 to 4 fold speed increase.