Test, validate and match regular expressions
This regex matches HTML heading tags (from <h1> to <h6>) and captures their inner text. It allows for optional attributes within the opening tag and places the heading content into the second capture group. It is useful for extracting titles or section headers from simple HTML documents in .NET applications.