I've Googled around and the consensus seems to be that regex is useless for parsing nested HTML tags. Is that really true?
Maybe not utterly
useless, but it's certainly not easy or foolproof using regex. To do it right, you need something capable of actually parsing
html (which regex is certainly
incapable of doing).