- ตัวดำเนินการ
-
เรียนรู้
ศูนย์การเรียนรู้ Python ตัวอย่างที่รันได้, NumPy, pandas และอื่น ๆ ศูนย์การเรียนรู้ C และ C++ พอยน์เตอร์ หน่วยความจำ STL และ C++ สมัยใหม่ ศูนย์การเรียนรู้ C#พื้นฐาน C#, OOP, LINQ, async และแบบฝึกหัด .NET อัลกอริทึม Python การค้นหา การเรียงลำดับ รีเคอร์ชัน และภาพจำลอง O(n) อัลกอริทึม C และ C++ เปรียบเทียบการเขียนด้วย C และ C++
- โจทย์
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.
ฝึก Python ด้วยโจทย์เขียนโค้ด
แก้โจทย์จริงใน editor นี้: รันทดสอบตัวอย่าง ส่งคำตอบ และรับรีวิวโค้ดจาก AI