ไดเรกทอรีเครื่องมือฟรี / เครื่องมืออื่นๆ / เครื่องมือทดสอบ Regex

เครื่องมือทดสอบ Regex

เครื่องมือทดสอบ regex ฟรี: ทดสอบนิพจน์ทั่วไปกับข้อความของคุณ ดูรายการที่ตรงกันที่ไฮไลต์ และตรวจสอบทุกกลุ่มที่จับภาพ ปรับธงได้

ทดสอบนิพจน์ทั่วไปกับข้อความของคุณและดูทุกการจับคู่ที่ไฮไลต์ โดยแต่ละกลุ่มจะถูกแสดงแยกกัน ปรับแฟล็กและทดสอบซ้ำจนกว่ารูปแบบจะตรงกับสิ่งที่คุณต้องการ ใช้ในขณะที่เขียนรูปแบบการตรวจสอบความถูกต้องสำหรับที่อยู่อีเมลหรือหมายเลขโทรศัพท์ก่อนที่จะวางลงในโค้ดของคุณ

เปิดเครื่องมือ →

ใช้งานได้ฟรี ไม่ต้องลงทะเบียน เครื่องมือจะเปิดบนหน้าของตัวเองและทำงานในเบราว์เซอร์ของคุณ

ต้องการมากกว่านี้ไหม? ไปโปร

Pro: download your Regex results as CSV & save history, $5 one-time

รับโปร →

อาลีเพย์ — $5

หรือปลดล็อคทุกเครื่องมือด้วย All-Access Pro — $15 หนึ่งครั้ง

รับการเข้าถึงทั้งหมด — $15 หนึ่งครั้ง

อาลีเพย์ — $15

ราคาจะถูกปรับตามประเทศ ดังนั้นเครื่องมือเดียวกันจะมีค่าใช้จ่ายน้อยลงในกรณีที่รายได้ต่ำกว่า คุณจะเห็นราคาสำหรับประเทศของคุณ

ชอบ Alipay ไหม? ดูตัวเลือกการชำระเงินทั้งหมด

ชำระเงินแล้ว? เข้าสู่ระบบโปร

วิธีการใช้งาน

  1. Type a regular expression and pick flags.
  2. Paste the text to test against.
  3. Press Test regex to see matches highlighted and capture groups listed.

คำถามทั่วไป

What are capture groups?

Parts of a pattern inside parentheses. Each group is listed separately in the table, so you can see exactly what each part of the pattern matched — useful when you want to extract pieces of text, not just find them.

Why does my pattern match nothing?

Check that the pattern really describes your text: a missing escape (\d, not d), a flag you forgot (i for case), or ^ and $ without the m flag on multi-line text are the usual suspects.

Can a regex freeze my page?

Yes — a pattern like (a+)+$ on a long string of a's can take exponentially long to test. This is called catastrophic backtracking. Keep patterns simple, avoid nested quantifiers, and test on short text first. This tool caps the match loop, but a single slow match can still hang the page, so test risky patterns on a few characters first.

เครื่องมือ เครื่องมืออื่นๆ เพิ่มเติม

← กลับไปที่เครื่องมือทั้งหมด · เรียกดูคำแนะนำ