CodexBloom - AI-Powered Q&A Platform

Regex Not Capturing Multiple Occurrences of HTML Tags in JavaScript

👀 Views: 0 💬 Answers: 1 📅 Created: 2025-06-12
regex javascript html

I'm trying to extract all occurrences of specific HTML tags (like `<div>` and `<span>`) from a block of HTML using a regex in JavaScript. My current regex seems...