Regex Tester Common templates, live highlight, and replace preview — all in one page

Test Area
//

Uses your browser's JavaScript RegExp engine, not Python or PHP. Includes 8 templates. Shows up to 1,000 matches; replacement uses the full input. Processing stops after 2 seconds.

Click to expand: template notes
  • Email:Simplified email pattern.
  • URL (http/https):Detects URLs starting with http or https (simplified).
  • IPv4:Four octets between 0–255.
  • Date YYYY-MM-DD:Simple date format (no leap/month checks).
  • HEX Color:Supports #RGB and #RRGGBB.
  • UUID v4:Standard UUID v4 format.
  • HTML Tag:Matches start/end tags (no multiline content).
  • Strong password (8+ with cases, digits, symbols):At least 8 chars including upper/lower, digit and symbol.
Match Result
Matches:0
Elapsed ≈ 0.00 ms
Flags:g
Live Highlight Preview
(Enter regex and text to preview highlights)
Replace (supports $1, $2…)

Regex Tester

Test JavaScript regular expressions online with live match highlighting, capture groups, replacement preview, and email, URL and IPv4 templates. Runs locally in your browser.

Common templates

  • Email: Simplified email pattern.
  • URL (http/https): Detects URLs starting with http or https (simplified).
  • IPv4: Four octets between 0–255.
  • Date YYYY-MM-DD: Simple date format (no leap/month checks).
  • HEX Color: Supports #RGB and #RRGGBB.
  • UUID v4: Standard UUID v4 format.
  • HTML Tag: Matches start/end tags (no multiline content).
  • Strong password (8+ with cases, digits, symbols): At least 8 chars including upper/lower, digit and symbol.

Uses your browser's JavaScript RegExp engine, not Python or PHP. Includes 8 templates. Shows up to 1,000 matches; replacement uses the full input. Processing stops after 2 seconds.

JavaScript RegExp — MDN