Developer Tools
Client-Side Only • Secure

正則表達式測試

通過實時高亮和詳細的匹配信息來測試、調試和理解您的正則表達式。所有處理都在您的瀏覽器中本地進行。

/ /
0 matches
No matches found.

Cheatsheet

Character Classes
. Any character
\w Word char
\d Digit
\s Whitespace
[abc] Any of a, b, c
[^abc] Not a, b, or c
Quantifiers
* 0 or more
+ 1 or more
? 0 or 1
{3} Exactly 3
{3,} 3 or more
Anchors & Groups
^ Start of line
$ End of line
\b Word boundary
(...) Capture group

Privacy Note

This tool runs entirely in your browser. No data is sent to any server. Your regex patterns and test strings remain private.