Regex for HTTP/HTTPS URLs
Example pattern below—edit it or paste your own. All processing runs in your browser. For Python’s re module, switch flavor in the tool.
Flavor
Standard `RegExp` for explanation and preview.
g i m s u y d v (JavaScript)
Visit https://example.com/path?q=1 and http://test.local/page.
Plain-English explanation
Flavor: JavaScript RegExp
Flags: g (find all matches); i (ignore case)
Match the character "h". Then Match the character "t". Then Match the character "t". Then Match the character "p". Then Match the character "s", optional. Then Match the character ":". Then Match the character "/". Then Match the character "/". Then Match any single character that is not one of: whitespace character, the character "<", the character ">", the character ", repeated one or more times.