a11y.skipToMainContent
1

ตัวทดสอบเรกทริกซ์

การ ตรวจ สอบ คํา พูด ของ จาวาสคริปต์ แบบ ปกติ จะ มี ชีวิต อยู่ — ดู ข้อ ความ ที่ มี การ เน้น ใน ข้อ ความ ของ คุณ และ จับ ได้ กลุ่ม ต่าง ๆ ใน รายการ.

More options

Common Pattern Library

Click any pattern to load it into the tester:

Quick Regex Cheatsheet

Character Classes
. Any character
\d Digit [0-9]
\w Word char [a-zA-Z0-9_]
\s Whitespace
\D Non-digit
\W Non-word char
Anchors & Boundaries
^ Line start
$ Line end
\b Word boundary
\B Non-boundary
Quantifiers
* 0 or more (greedy)
+ 1 or more (greedy)
? 0 or 1 (optional)
*? 0 or more (lazy)
{n} Exactly n times
{n,m} n to m times
Groups & Lookarounds
(...) Capturing group
(?:...) Non-capturing group
(?=...) Positive lookahead
(?!...) Negative lookahead
Was this tool helpful?
Send output to:
Advertisement

How to use Regex Tester

  1. พิมพ์รูปแบบ regax ของคุณ.
  2. เลือกธง.
  3. วาง ข้อ สอบ — ตรง กับ จุด ที่ อยู่.

อะไรคือ?

สร้างและดีบั๊กนิพจน์ปกติได้อย่างรวดเร็ว: พิมพ์รูปแบบ, สลับธง (g, i, m, s, u) และเห็นความตรงกันในข้อความทดสอบของคุณ กลุ่มที่ดักจับปรากฏอยู่ถัดจากแต่ละรายการ เพื่อตรวจสอบอย่างง่าย

Advertisement

FAQ

รสไหนของรีเซ็กซ์?
ชุดจาวาสคริปต์ (ECMAScript). คนดู, คนดู, คลาสตัวละคร, กลุ่มจับ, ชื่อกลุ่มที่ทุกคนสนับสนุน.
ความ ปลอด ภัย คือ อะไร?
แคปที่นัดละ 100,000 นัด เพื่อป้องกันรูปแบบการหลบหนี.

Related tools

Author

MW
Marcus Webb"The DevTool Craftsman"

Full-Stack Developer & Tools Architect

Marcus has been writing code since the dial-up era. He has contributed to open-source developer tools, built CI/CD pipelines for startups, and debugged production incidents at 3 AM more times than he would like to admit. His philosophy is that the best developer tool is the one that gets out of your way, and he writes about practical tooling that helps teams ship faster with fewer headaches.

Advertisement