Test, validate and match regular expressions
This regex matches href attributes in HTML/XML tags, capturing the 'href' keyword (with leading whitespace) and the quote character used. It handles varying whitespace around the equals sign and supports both single and double quotes. With the 'gmi' flags, it finds all matches case-insensitively across multiple lines, making it ideal for href attribute standardization or harmonization in markup documents.