DevLooms
Tools
🔍

Regex for URL

Match URLs with a regex pattern and test with examples.

Last updated: 2025-03-02

Match URLs with a regex pattern and test with examples. Use this tool whenever you need to work with regular expressions quickly.

All processing runs in your browser — your data is never sent to our servers. No sign-up required.

Use the fields below to enter your input, adjust any options, then copy or download the result.

How to use

  1. Enter or paste your input in the field below.
  2. Adjust options if the tool supports them.
  3. Copy or download the result as needed.

Pattern

/https?://[^\s]+/

Matches http or https URLs (no spaces).

Example valid

  • https://example.com/path?q=1
  • http://test.org

Example invalid

  • ftp://x.com
  • example.com

Try it

1 match(es): "https://example.com/path?q=1" @ 0