<([a-z]+)([^<]+)*(?:>(.*?)<\/\1>|\s+\/>)
Matches:
✓ content
✓ 
<([a-z]+)([^<]+)*(?:>(.*?)<\/\1>|\s+\/>). Warning: Regex is not ideal for HTML parsing - use a proper HTML parser for production.Not for production! Use DOMParser or libraries like cheerio. Regex cannot handle nested/malformed HTML reliably.