Skip to content

Latest commit

 

History

History
10 lines (8 loc) · 300 Bytes

html.md

File metadata and controls

10 lines (8 loc) · 300 Bytes

Match html tags

/<([a-z] )[^>]*>/
  • /< - open tag at the beginning
  • [a-z] - any number of any letter
  • [^>]* - will also include attributes if any (any text before closing tag >)
  • consider using HTML parsers for better support