Test, validate and match regular expressions
Matches the start of lines beginning with common URL schemes — http, https, rtp, rtsp, or udp — followed by '://'. Useful for detecting or validating web addresses and streaming media links in multiline text. With the global (g) and multiline (m) flags, it finds all such protocol prefixes at the start of each line. Note that it only validates the scheme portion, not the full URL structure.