I wrote: > http://regex.info/blog/2006-09-15/247 Which of course might raise the question of whether one might reasonably parse XHTML/HTML using regular expresssions. http://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags#answer-1732454