Test patterns, visualize matches, and learn regex with live explanations and safety hints.
Enter a pattern and test text to see live matches and explanations.
The global flag (g) is automatically enabled for match highlighting. Active flags: none.
No matches yet. Try another pattern or test string.
Enter a pattern to see the explanation.
Diagrammatic view provides a quick token flow preview.
const pattern = ""; const flags = "g"; const regex = new RegExp(pattern, flags); const matches = [..."your input".matchAll(regex)]; console.log(matches);