Developer Tool
Regex Tester
Enter a pattern and test it against your text. Matches are highlighted in real time. Supports g, i, m, s flags.
Pattern & Flags
//g
Test String
Matches
3 matchesThere are 42 posts and 1024 readers on Stack Dev Life.
The blog started in 2023.
Match list
"42""1024""2023"
How to use this tool
- 1
Enter your regex pattern
Type a regular expression in the Pattern field. Add flags (g, i, m, s) using the toggle buttons to control matching behaviour.
- 2
Paste your test string
Type or paste the text you want to match against. Matches are highlighted in real time as you type — no need to click anything.
- 3
Review matches and groups
See the total match count and any captured groups listed below the test string. Use the match info to refine your pattern.
From the Blog — Code & Patterns