หน้าบ้าน
Timeline
Regular Expression Tester
Regular Expression
Flags:
g
หาทุกรายการที่ตรงกัน (Global)
i
ไม่สนใจตัวพิมพ์ใหญ่-เล็ก
m
รองรับหลายบรรทัด (^ $ ทำงานกับบรรทัดใหม่)
s
ให้ . จับขึ้นบรรทัดใหม่ได้ด้วย
u
รองรับ Unicode (สำหรับภาษาพิเศษ)
Preset Patterns
Email
URL
Phone (US)
Date (YYYY-MM-DD)
IPv4
Hex Color
Test String
Quick Reference
Hide
Character Classes
.
Any character except newline
\d
Digit (0-9)
\w
Word character (a-z, A-Z, 0-9, _)
\s
Whitespace
[abc]
Any of a, b, or c
[^abc]
Not a, b, or c
Quantifiers
*
0 or more
+
1 or more
?
0 or 1
{3}
Exactly 3
{3,}
3 or more
{3,5}
Between 3 and 5
Anchors
^
Start of line
$
End of line
\b
Word boundary
Groups
(abc)
Capture group
(?:abc)
Non-capturing group
|
Alternation (OR)