How to use the tester
Enter a pattern between the slashes, choose flags with the checkboxes and write or paste text below. Matches are highlighted in the preview and listed with their index.
If the pattern is invalid, the engine's error message is shown so you can fix it right away.
Flags explained
- g (global) finds every match instead of only the first.
- i (ignore case) treats upper and lower case as equal.
- m (multiline) lets ^ and $ match at each line.
- s (dotAll) lets the dot match line breaks.
- u (unicode) enables full Unicode matching.
Capture groups
Parentheses create numbered groups, and (?<name>...) creates a named group. Each match lists every group so you can check what your pattern really captures before using it in code.

