Test, validate and match regular expressions
This regex matches HTML anchor tags (<a>) that have an href attribute, capturing the URL inside the href and the anchor text between the opening and closing tags. It uses lazy matching to extract the href value and a tempered dot to capture the text content while avoiding premature matches across multiple anchors. Useful for extracting links and link text from HTML documents, though it assumes well-formed tags without nested anchors.