← All tools
Regex Tester & Replacer
Test JavaScript regular expressions, inspect matches, and preview replacements.
Highlighted preview
Matches will be highlighted here.
Match details
No matches yet.
Replacement preview
JavaScript syntax. Zero-length matches are shown as amber markers. Testing is limited to 100,000 characters and 1,000 displayed matches to keep the page responsive.
More developer tools
Using Regex Tester & Replacer
Which inputs does Regex Tester & Replacer support?
Enter a pattern, JavaScript flags, test text, and an optional replacement string.
What is an example of the result?
With global matching, pattern a, input aba, and replacement x produce xbx.
Which limits or failure conditions matter?
Patterns run in an isolated worker with a 750 ms computation budget. Input is limited to 100,000 characters and the match list to 1,000 results; a timeout leaves the page usable.
Where is this task processed?
Your input is processed in this browser. Application libraries may be downloaded on first use; the entered content is not sent to a conversion service.