Test, validate and match regular expressions
This regex matches standard web URLs starting with 'http://' or 'https://'. It optionally captures a 'www.' prefix (note that the dot is unescaped, matching any character), followed by a domain name and a top-level domain suffix like '.com'. It is useful for extracting basic website addresses from a given text.