Build, test, and debug regular expressions
This regex identifies and isolates JavaScript elements within HTML text. It captures complete script blocks (including opening tags, content, and closing tags) and also matches event handler attributes (like onclick, onload) in HTML elements, capturing both the quote character and handler content. The pattern is useful for security scanning, content filtering, or JavaScript extraction from HTML documents.