Công cụ Developer

Kiểm tra Regex

Kiểm tra biểu thức chính quy với tô sáng khớp thời gian thực và trích xuất nhóm

no pattern
//
Test String0 chars · 1 lines
Substitution Result
Match Information
Match 1 of 1
Match 1
empty string
index 0 · length 0
✨ AIAssistant
Explanation
Enter a pattern to see its breakdown
History

Regex Tester & Debugger

Test and debug regular expressions with live match highlighting, group capture, and flag support. Works with JavaScript regex syntax. Paste your pattern, enter test text, and see matches instantly.

FAQ

What regex flags are supported?

g (global), i (case-insensitive), m (multiline), s (dotAll), u (unicode), and y (sticky) — the same flags as JavaScript's RegExp.

How do I match a whole word?

Use word boundaries: \bword\b matches 'word' but not 'words' or 'keyword'.

How do I make a regex case-insensitive?

Add the i flag. /hello/i will match Hello, HELLO, hElLo, etc.

What is a capture group?

Parentheses create a capture group: (\d+) captures one or more digits. Named groups use (?<name>pattern).

Chưa thấy công cụ bạn cần?

Chúng tôi xây công cụ miễn phí dựa trên phản hồi cộng đồng. Hãy đề xuất tiện ích giúp workflow của bạn!

Kiểm tra Regex — Công Cụ Miễn Phí Online | FreeTool24 | FreeTool24