I’m still waiting for the perfect moment to post this: https://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags/1732454#1732454 in response to someone on the scratch forums (edited to match the context of course)

comments