- ตัวดำเนินการ
-
เรียนรู้
ศูนย์การเรียนรู้ Python ตัวอย่างที่รันได้, NumPy, pandas และอื่น ๆ ศูนย์การเรียนรู้ C และ C++ พอยน์เตอร์ หน่วยความจำ STL และ C++ สมัยใหม่ ศูนย์การเรียนรู้ C#พื้นฐาน C#, OOP, LINQ, async และแบบฝึกหัด .NET อัลกอริทึม Python การค้นหา การเรียงลำดับ รีเคอร์ชัน และภาพจำลอง O(n) อัลกอริทึม C และ C++ เปรียบเทียบการเขียนด้วย C และ C++
- โจทย์
Inspect and compare
Regex Tester
Write a regular expression and see matches, capture groups and replacements highlighted live.
- Runs in your browser
- Instant results
- Free, no sign-up
Loading the tool…
How to use the Regex Tester
- Enter your pattern and flags such as g, i or m.
- Paste test text; matches are highlighted as you type.
- Check the capture groups and try a replacement.
Frequently asked questions
Which regex flavor is used?
JavaScript (ECMAScript), as in your browser. Most syntax also works in Python, Java and PCRE.
How do I use capture groups in replacements?
Use $1, $2 and so on for numbered groups, or $<name> for named groups.
Why does my pattern match only once?
Add the g (global) flag to find every match instead of only the first.
ฝึก Python ด้วยโจทย์เขียนโค้ด
แก้โจทย์จริงใน editor นี้: รันทดสอบตัวอย่าง ส่งคำตอบ และรับรีวิวโค้ดจาก AI