All Tools / Developer

Regex Tester

Test regular expressions with live match highlighting, groups and flags.

Matches highlighted below

How to use

  1. Type your pattern in the pattern box - leave out the surrounding slashes.
  2. Tick flags: g (all matches), i (ignore case), m (multiline), s (dot matches newline), u (unicode).
  3. Paste test text. Matches highlight inline and appear in the results list with positions and captured groups.

Frequently asked questions

How do I test a regular expression?
Type your pattern (without slashes), tick the flags you need, and paste your test text. Every match is highlighted inline and listed with its position and captured groups.
What do the flags mean?
g - find all matches; i - case insensitive; m - ^ and $ match line starts/ends; s - dot matches newlines; u - Unicode-aware matching.
Is my text uploaded anywhere?
No. All matching happens locally in your browser. Your patterns and test data never leave your device.