RegEx match open tags except XHTML self-contained tags
stackoverflow.com
external-link
I need to match all of these opening tags: <p> <a href="foo"> But not self-closing tags: <br /> <hr class="foo" /> I came up with this and wanted to make
@solrize@lemmy.world
link
fedilink
5
edit-2
25d

There is a famous Erik Naggum rant about XML at, no wait, I better not link it but you can find it with a search engine if you want, which means you don’t get to complain to me about it since you are the one who went looking for it. Very NSFW and VERY politically incorrect. Naggum died in 2009 but anyone who published a thing like that today would be raked over the coals.

Create a post

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
  • 1 user online
  • 3 users / day
  • 7 users / week
  • 108 users / month
  • 558 users / 6 months
  • 1 subscriber
  • 898 Posts
  • 3.11K Comments
  • Modlog