Skip to main content

Regex Roulette · #60 · 2026-06-03

Match strings starting with http:// or https://

Difficulty 1/3

How to play

Write a regex that matches all green strings and rejects all red strings. Live feedback shows which strings pass. Shorter patterns score better.

Must match

  • http://example.com — not yet evaluated
  • https://test.org — not yet evaluated
  • https://a.b — not yet evaluated

Must not match

  • ftp://files.com — not yet evaluated
  • http:/missing — not yet evaluated
  • htp://typo.com — not yet evaluated
  • example.com — not yet evaluated

Loading your progress...

Pattern body only — slashes and flags (e.g. /g, /i) aren't part of the input.

0/200 chars

Type a regex that matches all green strings and rejects all red strings · Back to hub