Email-like tokens
Capture local and domain parts with groups.
Pattern: (\w+)@(\w+\.\w+) · Text: hello@toolmint.dev1 match · group1=hello · group2=toolmint.devTest JavaScript regular expressions in your browser. Try patterns with flags, inspect matches and capture groups, and copy a match report - no upload required.
Enter a JavaScript pattern (without slashes) and choose flags.
Enter a regular expression or load the example to start matching.
One tap, no account. Your vote is saved in this browser and counted in our site analytics.
See every match with start/end indices, numbered capture groups, and named groups as you edit the pattern or test string.
Toggle g, i, m, s, u, and y to mirror how your application will compile the expression.
Matched spans are marked in a plain-text preview so you can verify boundaries before shipping the regex to production.
Type the regular expression body without surrounding slashes. Enable the flags your runtime will use.
Add the sample text, log line, or input you want to match against.
Inspect match count, indices, groups, and the highlighted preview. Copy or download a report if you need to share it.
Iterate on a regex for validating emails, phone numbers, or usernames against realistic sample inputs before shipping it.
Write and test a capture-group pattern that pulls timestamps, IDs, or error codes out of raw log output.
Paste a suggested pattern and sample text to confirm it behaves as claimed before merging a pull request.
Check how a regex ported from another language behaves under JavaScript RegExp semantics, including flag and escaping differences.
Capture local and domain parts with groups.
Pattern: (\w+)@(\w+\.\w+) · Text: hello@toolmint.dev1 match · group1=hello · group2=toolmint.devFind every number with the global flag.
Pattern: \d+ · Flags: g · Text: order 12 and 72 matches: "12" and "7"Match a keyword regardless of case.
Pattern: error · Flags: i · Text: ERROR at line 91 match: "ERROR"All pattern compilation and matching run in your browser. ToolMint does not upload, store, or transmit the pattern or test string you enter. After the page has loaded, you can continue testing offline.
A Regex Tester is a developer tool that lets you write a regular expression, choose flags, and instantly see how it matches sample text. ToolMint’s Regex Tester uses the browser’s JavaScript RegExp engine so results align with typical frontend and Node.js code. It reports match positions, capture groups, named groups, and a highlighted preview so you can refine patterns with less trial and error.
Regular expressions are powerful and easy to get subtly wrong. A live tester reduces guesswork when validating emails, scraping log lines, extracting tokens, or writing replace rules. Because everything runs locally, you can paste proprietary log snippets and API payloads without uploading them. Clear match metadata shortens debugging cycles compared with console.log loops.
This tool evaluates JavaScript regular expressions only. Patterns that rely on PCRE, Python, or .NET-specific features may not compile or may match differently. Pathological patterns can cause slow matching on large strings. The tester does not rewrite production code or guarantee security properties of user-supplied regex in server environments.
Seven Regex Mistakes That Break JavaScript Code
Unescaped dots, missing anchors, greedy matches, the stateful g flag, and catastrophic backtracking - what each mistake looks like and how to test for it before it ships.
Convert CSV to JSON Without Breaking Your Data
Why CSV to JSON conversions go wrong - quoted commas, line breaks inside cells, delimiters, and lost leading zeros - and how to check the output before it reaches your app.
URL Encoding Explained: Percent Signs, Plus Signs, and Double Encoding
How percent-encoding works, when to use encodeURIComponent versus encodeURI, why spaces sometimes become plus signs, and how to spot double-encoded URLs.
Developer
Format and validate JSON instantly.
Updated Jul 20, 2026
Developer
Check JSON syntax and inspect structure locally.
Updated Jul 20, 2026
Developer
Format and minify SQL instantly.
Updated Jul 20, 2026
Developer
Format and minify HTML instantly.
Updated Jul 20, 2026
See every utility on the all tools page.
Found a problem or missing feature? Tell us - no account required.
Last updated: