@natecull It's fun, but it irks me, because it doesn't actually answer the question. OP didn't ask how to match HTML with a regex, but how to match *tags* with a regex.
That said, I feel the responder's pain, because they must have seen a thousand people trying to do the former. And this was probably just close enough to that, and they finally snapped.
But I'm never really sure with PCREs
I don't know anymore. Maybe I should just try RELAX
https://en.wikipedia.org/wiki/Regular_Language_description_for_XML and use an XML parser.