Build, test, and debug regular expressions
This regular expression matches HTML <link> elements and extracts the values from their rel and href attributes. Using the global and case-insensitive flags, it captures the relationship type and the resource URL into two distinct capturing groups. It is ideal for web scraping tasks, such as extracting stylesheet URLs, favicon locations, or other linked metadata from the head of an HTML document.