HTML Markup Regular Expression

Category: Markup | Views Total: 0 views

A regular expression that matches HTML markup.

/<(\w+)[^>]*>(.*?<\/\1>)?/

HTML Markup Examples:

  • <div class=”demo”></div>
  • <br>
  • <input type=”tel”>
Rate This Regex
Sending
User Review
0 (0 votes)

Leave a Reply