Regex Tester
Test regular expressions against any input string. Highlights all matches in real time and shows match list with positions. Supports g, i, m, s flags.
//
Tools run in your browser. Shared links may include your input; check the URL before sharing.
How to use
- Enter a pattern and sample text.
- Toggle flags and inspect the matches.
This example illustrates one supported operation. Choose the matching mode and settings above; generated values and formatting may vary.
Example input or settings
/\d+/g
order 123, item 45Example result
["123", "45"]Why does another language match differently?
This tool uses JavaScript regex rules. Other engines may differ in escaping and supported syntax.