ตัวทดสอบ Regex
ทดสอบ regular expression พร้อมไฮไลต์สดและรายละเอียดการจับคู่
ทำงานในเบราว์เซอร์ของคุณ ไฟล์ไม่ออกจากอุปกรณ์ ดูวิธีตรวจสอบ
…
วิธีทำ
- 1เลือกการตั้งค่า
กรอกรายละเอียดหรือเลือกตัวเลือกที่ต้องการ
- 2ดูผลลัพธ์
ตัวอย่างอัปเดตทันทีเมื่อคุณเปลี่ยนค่า
- 3ดาวน์โหลดหรือบันทึก
บันทึกผลลัพธ์ลงอุปกรณ์ ไม่มีอะไรถูกส่งหรือบันทึกบนเซิร์ฟเวอร์
About this tool
Build and test regular expressions with JavaScript syntax. Matches are highlighted in your text and listed with their position and groups. Set flags such as g, i, m, s, u and y. Good for learning and for checking patterns before using them in code.
When to use it
Test regular expressions with live highlighting and match details, before you use them in code.
Tips
Start simple and add parts. Use flags such as g and i. Watch for greedy matches.
Privacy
Everything runs in your browser, so your data is not uploaded or stored.
เคล็ดลับเพื่อผลลัพธ์ที่ดีที่สุด
ก่อนเริ่ม ใช้เวลาอ่านตัวเลือกสักครู่และลองเครื่องมือกับตัวอย่างเล็ก ๆ ก่อน ทุกอย่างทำงานในเบราว์เซอร์บนอุปกรณ์ของคุณ สิ่งที่คุณพิมพ์หรือเพิ่มจะไม่ถูกอัปโหลด และการปิดแท็บจะลบทุกอย่าง หากมีอะไรดูไม่ถูกต้อง ให้โหลดหน้าใหม่แล้วลองอีกครั้ง หรือใช้ลิงก์แจ้งปัญหาในหน้านี้เพื่อบอกเราว่าเกิดอะไรขึ้น หากผลลัพธ์ยังดูผิด ให้เปลี่ยนทีละค่าเพื่อดูว่าช่องไหนมีผลมากที่สุด บุ๊กมาร์กหน้านี้หากคุณจะใช้อีก
สรุปสั้น ๆ
- หมวดหมู่: เอกสาร
- ทำงานในเบราว์เซอร์ ไม่ต้องสมัคร ไม่ต้องอัปโหลด
- ข้อมูลที่คุณกรอกอยู่บนอุปกรณ์ของคุณ
- มีหลายภาษา
- ตรวจสอบเนื้อหาล่าสุด:
คำถามที่พบบ่อย
Which regex flavour is used?
JavaScript, the one used in browsers and Node.js.
Why do I see an error?
The pattern is not valid. The message tells you what is wrong, such as an unclosed bracket.
Which flavour is used?
JavaScript regular expressions.
Can I see groups?
Yes, capture groups are listed for each match.