Regex Tester
Test and debug regular expressions online with real-time match highlighting, match count, and group capture details. Free online tool — runs entirely in your browser.
How to Use
Enter a regular expression
Type your regex pattern in the pattern field. The surrounding slashes (/ /) are displayed for readability but are not part of the pattern.
Toggle flags as needed
Use the flag buttons below the pattern field: g (global — find all matches), i (case-insensitive), m (multiline — ^ and $ match line boundaries), s (dotAll — dot matches newline).
Enter the test string
Type or paste the text you want to test in the Test String field. Matches are highlighted in real time.
Review match details
The match count appears in the status bar. Scroll the Match Details list to see each match's value, position, length, and any captured groups.