Case insensitive HTML/BBCode parsing (I hope)