You can do that instead if you like. That NBBC parser looks like it should work fine, although I've never used it myself. An advantage of using such libraries is that most of them will allow a more complicated structure of BBCode tags. Using regular expressions, it's harder to properly parse things like nested or misaligned tags.
30 Replies - 5304 Views - Last Post: 17 September 2012 - 04:35 AM