Build, test, and debug regular expressions
This regular expression matches an entire HTML `<h2>` element anchored at the start of a string or line. It captures the opening `<h2>` tag, the inner text content, and the closing `</h2>` tag into three separate groups. With the global flag, it can be used across multiple lines to effectively find, extract, or remove header elements in text processing or web scraping tasks.