Test, validate and match regular expressions
Matches the scheme portion of a URL, capturing either 'http', 'https', or 'ftp' in group 1, followed by the literal '://'. Commonly used to locate or extract link prefixes in text, for example when validating protocols before a hostname or scanning documents for all URLs. The global (g) and multiline (m) flags let it find every occurrence across multiple lines of input.