ตัวทดสอบ Regex: คู่มือเริ่มต้นอย่างรวดเร็ว
ทุกสิ่งที่คุณต้องใช้สำหรับการรันครั้งแรกที่สำเร็จ: วางอะไร ตัวเลือกใดสำคัญจริง และอ่านผลลัพธ์อย่างไร
วิธีใช้
- เปิดเครื่องมือแล้ววางข้อมูลในช่องซ้าย
- ปรับเฉพาะตัวเลือกที่งานของคุณต้องการจริง — ค่าเริ่มต้นถูกต้องสำหรับข้อมูลส่วนใหญ่
- อ่านผลลัพธ์ที่ช่องขวา ซึ่งอัปเดตขณะพิมพ์
- ใช้ คัดลอก เพื่อนำผลลัพธ์ไปใช้ หรือ ดาวน์โหลด เพื่อบันทึกเป็นไฟล์
ตัวอย่าง
Try email pattern.
ข้อมูลเข้า
user-2026@mail.com and admin@sub.example.co.uk
ข้อมูลออก — ผลลัพธ์
<p class="tb-note">2 matches</p><table class="tb-table"><tr><th>#</th><th>Match</th><th>Index</th></tr><tr><td>1</td><td><code>user-2026@mail.com</code></td><td>0</td></tr><tr><td>2</td><td><code>admin@sub.example.co.uk</code></td><td>23</td></tr></table><pre class="ex-io"><mark>user-2026@mail.com</mark> and <mark>admin@sub.example.co.uk</mark></pre>
รัน
คำอธิบาย
Live JavaScript regex testing with match groups highlighted.
ตัวทดสอบเรกูลาร์เอ็กซ์เพรสชัน → · วิธีใช้ → · เครื่องมือเรกูลาร์เอ็กซ์เพรสชัน →
เครื่องมือที่เกี่ยวข้อง
เครื่องมือเรกูลาร์เอ็กซ์เพรสชันความต่างApply regex replacements with $1 capture references.คลังทั่วไปเรกูลาร์เอ็กซ์เพรสชันReady-made patterns for email, URL, phone, dates and more.ตัวเข้ารหัส Base64Encode text, JSON, URLs or files to Base64, standard or URL-safe.ตัวเข้ารหัส URLPercent-encode URLs or single query components.ตัวถอดรหัส Base64Decode Base64 (standard or URL-safe) back to text or bytes.ตัวสร้าง SHA-256 แฮชCompute the SHA-256 digest — the standard for modern integrity checks.