- Executors
-
Learn
Python Learning Hub Runnable examples, NumPy, pandas, and more C & C++ Learning Hub Pointers, memory, STL, and modern C++ C# Learning HubC# basics, OOP, LINQ, async, and .NET exercises Python Algorithms Search, sorting, recursion, and visualizers O(n) C & C++ Algorithms Compare algorithms implemented in C and C++
- Challenges
Visualizers
Regex Visualizer
Draw any regular expression as a railroad diagram to understand what it matches.
- Runs in your browser
- Instant results
- Free, no sign-up
Loading the tool…
How to use the Regex Visualizer
- Type a regex or pick an example.
- Follow the paths in the diagram: boxes are what must match, loops are repeats, branches are alternatives.
- Test a sample string and download the diagram as SVG.
Frequently asked questions
How do I read a railroad diagram?
Start at the left dot and follow any path to the right dot. Every path you can take is something the regex matches.
Which regex syntax is supported?
JavaScript regular expressions, including named groups, lookahead, lookbehind and Unicode property escapes.
Can I paste /pattern/flags?
Yes. Slashes are removed and the flags are moved to the flags box.
Practice Python with coding challenges
Solve hands-on problems right in this editor: run the sample tests, submit, and get an AI code review.