phantom-inker - 2009-10-31

Richard, thank you for your comment. I haven't used the new tracker system much, and I didn't even realize your post existed until today, nearly a year later.

When I was first designing the main lexing regex, I was primarily concerned about correctness, so it wouldn't entirely surprise me if it's presently over-specified.

(It's still far more efficient, though, than most BBCode-lexing algorithms you'll see in PHP, since it pushes all of the hardest lexing work into C code. In my tests, even that apparently-inefficient regex was outperforming other BBCode-parsing solutions by a mile, which is actually somewhat depressing.)

Anyway, if you have a more efficient version, I'd be happy to take a look at it, and if it's reasonably sane and maintainable, I would have no qualms with updating the code to use it.