Developer tool
Regex Tester
Test JavaScript regular expressions, flags, captures, and replacements live.
Runs in your browser#1
Normal Toolsindex 0$1: Normal$2: Tools#2
normal toolsindex 25$1: normal$2: toolsHow to use this regex tester
- Enter the regular expression without slash delimiters, choose the flags, then paste test text and an optional replacement pattern.
- Review the test result and any values that look unusual. Check syntax, escaping, and edge cases against the source before using the result in a live project.
- Copy or download the result if you need a record of the check.
About this regex tester
Regex Tester helps you test JavaScript regular expressions, flags, captures, and replacements live. The input and result appear together for easy comparison.
You can also use it to repeat the check after changing the input.
Example
Use (normal)\s+(tools) with the gi flags to find both words regardless of case and inspect each capture group.
Common uses
- → test JavaScript regular expressions, flags, captures, and replacements live
- → repeat the check after changing the input
- → save a result for later reference