Test a regular expression

Your input is processed in your browser. No sign-in required.

How to use this tool

Enter sample text, a JavaScript regex pattern and its flags. Review the matches, positions and captured groups. If the test times out, shorten the sample or simplify the pattern.