Regex Tester
Test a JavaScript regular expression against text and preview replacements in an isolated worker with a time limit.
Result
How to use Regex Tester
- Enter the expression and optional flags
- Paste the test text
- Review match positions and replacement preview
Worked example
Using \d+ with flag g finds all whole number sequences.
Frequently asked questions
Which regex syntax is used?
The browser uses ECMAScript regular expressions. The evaluator stops long-running expressions to keep the page responsive.
Related tools
Password Strength CheckerEvaluate a password locally using the zxcvbn common-password and pattern estimator.Hash Generator & CheckerCalculate SHA-256, SHA-384 or SHA-512 checksums for text or a file and compare against a known value.Base64 Encoder & DecoderEncode UTF-8 text or a small file as Base64, or decode data to a downloadable byte file.