a11y.skipToMainContent
1

Comment

Kiểm tra trực tiếp các biểu thức JavaScript — xem các trận đấu được đánh dấu trong văn bản của bạn và các nhóm bị bắt trong danh sách.

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. Hãy gõ mẫu regex của bạn.
  2. Chọn cờ đi.
  3. Dán đoạn kiểm tra — khớp với những điểm nổi bật trực tiếp.

Tên là gì?

Cấu hình và gỡ lỗi biểu thức chính quy nhanh chóng: gõ một mẫu, bật/tắt cờ (g, i, m, s, u), và xem khớp được tô sáng trong văn bản thử nghiệm. Nhóm đã bắt xuất hiện bên cạnh mỗi trận đấu để xác thực dễ dàng.

Advertisement

FAQ

Vị regex nào?
JavaScript regex (ECMASQU). Lookaheads, lookbehind, các lớp nhân vật, các nhóm bắt giữ, tất cả các nhóm được hỗ trợ.
Giới hạn an toàn là bao nhiêu?
Thuyền ở 100,000 lượt chạy để ngăn chặn các mẫu chạy trốn.

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