JavaScript Regex Tester
Test JavaScript regular expressions live against multiple strings. Inspect capture groups, named groups, and match indices instantly.
//g
Common Use Cases
- 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.
- 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.
- 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
Data Format Converter
Convert between JSON, YAML, TOML, CSV, XML, and SQL. Auto-validates input and prettifies with one click.
Diff Viewer
Paste two blocks of text to instantly see a visual unified diff with additions, deletions, and a copyable raw patch.
JSON Schema Generator + Validator
Paste sample JSON to instantly generate a draft-07 JSON Schema. Switch to Validate mode to check any JSON against a schema. Runs entirely in your browser.