DevToolBoxฟรี
บล็อก

ตัวทดสอบ Regex

ทดสอบ regular expression พร้อมการจับคู่ ไฮไลต์ และรองรับ capture group แบบเรียลไทม์

//g

เกี่ยวกับ Regular Expression

Regular expression (regex) เป็นรูปแบบที่ทรงพลังสำหรับการจับคู่ ค้นหา และแทนที่ข้อความ จำเป็นสำหรับการตรวจสอบข้อมูลเข้า การประมวลผลข้อความ และการดึงข้อมูล เครื่องมือนี้ทดสอบ regex ของคุณแบบเรียลไทม์ด้วยเอนจิน regex ของ JavaScript

𝕏 Twitterin LinkedIn

ให้คะแนนเครื่องมือนี้

4.2 / 5 · 82 คะแนน

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

R✓Regex CheckerR≈Regex MatcherR+Regex Generator\Escape / Unescape

อัปเดตข่าวสาร

รับเคล็ดลับการพัฒนาและเครื่องมือใหม่ทุกสัปดาห์

ไม่มีสแปม ยกเลิกได้ตลอดเวลา

Enjoy these free tools?

Buy Me a Coffee

วิธีใช้งาน

  1. Enter your regex pattern in the pattern field
  2. Add flags (g for global, i for case-insensitive, m for multiline)
  3. Type or paste your test text
  4. View highlighted matches and match details in real-time

กรณีการใช้งาน

  • Validating email addresses, URLs, or phone numbers
  • Extracting data from text (log parsing, web scraping)
  • Search and replace operations
  • Input validation in web forms

คำถามที่พบบ่อย

What is a regular expression?
A regular expression (regex) is a pattern used to match, search, and manipulate text. It's supported in virtually every programming language.
How do I test my regex?
Enter your regex pattern in the pattern field, add test text below, and the tool will highlight all matches in real-time. Flags like 'g' (global) and 'i' (case-insensitive) are supported.
Is my regex data safe?
Yes. All regex processing happens in your browser using JavaScript's built-in RegExp engine. No data is sent anywhere.