Test, validate and match regular expressions
Validates HTTP and HTTPS URLs consisting of a domain with at least two dot-separated labels (e.g., https://example.com), followed by optional path segments made of alphanumerics, hyphens, dots, and slashes, plus an optional query string in the form ?key=value. The global and multiline flags let it match multiple URLs across lines of text. It rejects ports, percent-encoded characters, and ampersand-separated query parameters.