JavaScript Regex Tester

Test JavaScript regular expressions live against multiple strings. Inspect capture groups, named groups, and match indices instantly.

//g

Common Use Cases

  1. Form validation regexTest a regex pattern for validating email addresses, phone numbers, or postal codes against a set of valid and invalid example strings to confirm correct matching.
  2. Log line parsingWrite a regex with named capture groups to extract structured fields (timestamp, level, message) from raw log lines and inspect the captured values.
  3. URL component extractionUse a regex with capture groups to extract the protocol, hostname, path, and query string from a list of URLs for use in a JavaScript application.

Pro plan — coming soon

Save your history, create reusable presets, and share outputs with a link. One plan, all tools.

See what's planned →

Frequently Asked Questions

Related Tools