Developer Tools
Regular expression tester
Test RegExp patterns, flags and capture groups. Review highlighted matches in a local worker with time and size limits.
What this tool does
Explore JavaScript expressions without running them on the interface thread. A new worker limits the impact of expensive patterns.
How to use it
- Enter a pattern without delimiter slashes and your test text.
- Set flags such as g or i.
- Process, review indices/groups and cancel or reduce the input if it times out.
Verifiable example
- Input
- Pattern (a+) with g flag; text baa.
- Expected result
- Match aa at index 1 with captured group aa.
Limitations to review
- Pattern 2,000 characters, text 100,000, 500 matches and one second per job.
- Flags depend on the browser. Indices use UTF-16 units. Does not validate patterns for other regex engines.
Related tools
Browse all guides. Local processing: the page downloads HTTP resources but does not send files or input data to a server for these functions.