Patterns
Regex Tester
Run a JavaScript RegExp against sample text and inspect matches and groups. It is not a multi-engine debugger.
This tool can receive sensitive values. Processing stays in your browser. Do not paste production secrets, private keys, or live access tokens. DevToolMage does not upload or log the input.
Matches
2 matches. JavaScript flavor only.
- 1. [9] mage@example.com groups: mage, example.com
- 2. [30] ops@example.org groups: ops, example.org
How it works
Constructs new RegExp(pattern, flags) and walks matches with a lastIndex guard. Named groups are listed when present.
Input and output
Input is a pattern, flags, and test text. Output is match spans, groups, and errors.
Examples
Email-shaped
A simple capture pattern can extract the local part and domain from a sample, not from all real addresses.
Invalid pattern
Unbalanced parentheses produce a syntax error, not a hang.
How to use this tool
- Enter a pattern without slashes.
- Set flags.
- Paste test text and read matches and groups.
Limitations
- JavaScript flavor only.
- Does not explain PCRE-only syntax.
- Does not share patterns to a server.
Questions
Does this support PCRE or Python regex?
No. It uses the JavaScript engine in your browser. Recursive patterns and possessive quantifiers are not available.
Can a pattern freeze the tab?
Catastrophic backtracking is still possible. The tester caps match iteration. Prefer simpler patterns on large text.
Related tools
JSON
JSON Formatter
Paste JSON to pretty-print it, check whether it parses, or minify it. The work stays on this device.
Encoding
URL Encoder and Decoder
Percent-encode or decode a string the way query parameters need. Full URL parsing is a different job.
Schedules
Cron Parser
Paste a standard 5-field cron string to get an English explanation and the next run times. This is Unix cron, not Quartz.