Loading...
Visualize regex online for free. See regular expression as a diagram. Understand regex patterns.
Understand regex patterns with visual explanations
Paste your regex pattern
View breakdown of pattern components
Enter text to test pattern against
See what parts of text match
Paste your regex pattern
View breakdown of pattern components
Enter text to test pattern against
See what parts of text match
Blue highlights character classes (\d, \w), Yellow shows quantifiers (*, +, ?), Green indicates capture groups, Orange marks anchors (^, $), Purple highlights special characters, and Gray represents literal text.
It handles most common regex patterns including lookaheads, groups, and character classes. Some very advanced features like complex lookbehinds or Unicode properties may have limited visualization support.
Character classes like \d (digits 0-9), \w (word chars a-z, A-Z, 0-9, _), or [abc] (any of a, b, or c) define sets of characters that can match at a position.
Enter test text with multiple instances of your pattern. When using the global flag (g), the visualizer will highlight all matches throughout the text.