Hey! I’ve been down this road before. Regex is great for simple stuff, but HTML is just too messy. I’d recommend using a proper parser like BeautifulSoup or Cheerio.
If you’re dead set on regex, try `/<[^>]+>/g`. It’s not perfect, but it’ll catch most tags. Just be prepared for some edge cases.
If you’re dead set on regex, try `/<[^>]+>/g`. It’s not perfect, but it’ll catch most tags. Just be prepared for some edge cases.
