เครื่องมือนักพัฒนา

ทดสอบ Regex

ทดสอบและดีบัก regular expressions พร้อมไฮไลท์การจับคู่

3 matches
//
Test String105 chars · 2 lines
Match Information
Match 1 of 3
Match 1
hello@example.com
index 14 · length 17
Group 1hello
Group 2example.com
Explanation
\bWord boundary
(Capturing group
\wWord character [a-zA-Z0-9_]
+1+ times (greedy)
)End of group
@Literal "@"
(Capturing group
\wWord character [a-zA-Z0-9_]
+1+ times (greedy)
\.Literal dot
\wWord character [a-zA-Z0-9_]
+1+ times (greedy)
)End of group
\bWord boundary
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).

ไม่เจอสิ่งที่ต้องการ?

เราสร้างเครื่องมือฟรีจากข้อเสนอแนะของชุมชน หากมีเครื่องมือที่จะช่วยเวิร์กโฟลว์ของคุณ แนะนำได้เลย!

Regex Tester — Free Tool Online | FreeTool24 | FreeTool24