Regex

Regex Tester

Test a JavaScript regular expression locally and see match status, counts, text, positions and capture groups.

Keep this tool in your workbenchReport a problem

Loading JavaScript Regex controls…

What does this tool do?

Test a JavaScript regular expression locally and see match status, counts, text, positions and capture groups. Code Station Regex tools use the JavaScript regular expression engine. Inputs: Regex Pattern, Test text, Flags. Outputs: Matches, Match count, Match status, Capture groups.

How to use it?

Enter a JavaScript pattern and test text, then select any flags. Choose “Test regex”, then copy individual result values if needed. Clear removes all inputs and results and restores option defaults.