Nate Cull is a user on You can follow them or interact with them if you have an account anywhere in the fediverse. If you don't, you can sign up here.

@natecull cracked up at "the <center> cannot hold," quite appropriate for such poetry to reference other masterpieces

@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.

@natecull a classic.

(meanwhile, approx 95 of the last 100 times i needed to extract some text from an html document, i probably just wrote a regex and moved on because life is short and dependencies are hell.)

@natecull @kurtm if you wish to truly glimpse the abyss consider a regex-detecting regex

@nev @natecull @kurtm if you're really into this kind of fun, damian conway has committed some pretty fascinating atrocities.

(i haven't actually watched the above talk, but i think it corresponds to one i saw him do at oscon one year.)

@natecull Every year I came back to this answer, wishing I could upvote it again.

@natecull you can check XHTML with PCRE, actually.