Worked examples
Enter the expression without / delimiters. Use g for all matches and i to ignore case. Capture groups are returned with each match. An empty match is advanced safely; a two-second timeout stops excessive backtracking.
| Example | Input / settings | Expected result |
|---|---|---|
| Global word matching | |
|
| Named capture group | |
|
Rules and limits
Uses your browser’s JavaScript regex engine. Match positions are zero-based UTF-16 offsets. Global mode lists up to 500 matches. Tests run in a worker and stop after two seconds; syntax differs from PCRE and Python.