Test, validate and match regular expressions
This regex matches an HTML <pre> tag containing a class attribute and a name attribute with the exact value "code". It specifically captures the value of the class attribute into the first capture group. This pattern is highly useful for parsing specific legacy HTML code snippets or extracting styling metadata from formatted text blocks during web scraping.