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

  1. Enter a pattern and sample text.
  2. 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 45

Example result

["123", "45"]

Why does another language match differently?

This tool uses JavaScript regex rules. Other engines may differ in escaping and supported syntax.