Please enable JavaScript to use this web application.
Regular
Expressions
101
Social
Donate
Info
Regex Editor
Community Patterns
Account
Regex Quiz
Settings
Order By
Most Recent
Most upvotes
Most downvotes
Highest Score
Lowest Score
Filter by Flavor
PCRE2 (PHP >=7.3)
PCRE (PHP <7.3)
ECMAScript (JavaScript)
Python
Golang
Java 8
.NET 7.0 (C#)
Rust
Sponsors
There are currently no sponsors.
Become a sponsor today!
Community Patterns
Search among 3,660 community submitted regex patterns...
0
校验密码强度
ECMAScript (JavaScript)
密码的强度必须是包含大小写字母和数字的组合,不能使用特殊字符,长度在8-10之间。
Submitted by
anonymous
-
7 years ago
0
校验中文
ECMAScript (JavaScript)
字符串仅能是中文。
Submitted by
anonymous
-
7 years ago
0
校验E-Mail 地址
ECMAScript (JavaScript)
同密码一样,下面是E-mail地址合规性的正则检查语句。
Submitted by
anonymous
-
7 years ago
0
校验身份证号码
ECMAScript (JavaScript)
18位
Submitted by
anonymous
-
7 years ago
0
校验身份证号码
ECMAScript (JavaScript)
15位
Submitted by
anonymous
-
7 years ago
0
校验日期
ECMAScript (JavaScript)
“yyyy-mm-dd“ 格式的日期校验,已考虑平闰年。
Submitted by
anonymous
-
7 years ago
0
校验IP-v4地址
ECMAScript (JavaScript)
IP4 正则语句
Submitted by
anonymous
-
7 years ago
0
校验IP-v6地址
ECMAScript (JavaScript)
IP4 正则语句
Submitted by
anonymous
-
7 years ago
0
提取Color Hex Codes
ECMAScript (JavaScript)
有时需要抽取网页中的颜色代码,可以使用下面的表达式。
Submitted by
anonymous
-
7 years ago
0
提取网页图片
ECMAScript (JavaScript)
假若你想提取网页中所有图片信息,可以利用下面的表达式。
Submitted by
anonymous
-
7 years ago
0
抽取注释
ECMAScript (JavaScript)
如果你需要移除HMTL中的注释,可以使用如下的表达式。
Submitted by
anonymous
-
7 years ago
0
匹配HTML标签
ECMAScript (JavaScript)
通过下面的表达式可以匹配出HTML中的标签属性。
Submitted by
anonymous
-
7 years ago
0
aHex color
ECMAScript (JavaScript)
no description available
Submitted by
@hachesilva
-
7 years ago
0
Customer
Golang
no description available
Submitted by
anonymous
-
7 years ago
0
Array-like string
ECMAScript (JavaScript)
Matches strings that are formatted as arrays. The following will match: [ 3.4, -600, foo ] ["foo","bar"] [ bar, 1600 ]...
Submitted by
Chris Swithinbank
-
7 years ago
0
image cid
Golang
no description available
Submitted by
anonymous
-
7 years ago
0
match all #tag except specified
ECMAScript (JavaScript)
in the example, I'm matching all the #tags except *#thankyouburger *. very useful for when you want to strip out all but one tag
Submitted by
Pavel Dominguez
-
7 years ago
0
Romanian Exact Match
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
7 years ago
0
key value pairs
ECMAScript (JavaScript)
detect key value pairs in string with key having spaces
Submitted by
anonymous
-
7 years ago
0
key value pairs ends with character
ECMAScript (JavaScript)
detect key value pairs that ends with ; or & in a string contains sapaces
Submitted by
anonymous
-
7 years ago
1
...
8
9
10
11
12
...
183
Community Library Entry
3
Regular Expression
Golang
`
^
(?P<scheme>
[^
:
\/
?#
]
+
)
:
(?:
\/\/
)?
(?:
(?:
(?P<login>
[^
:
]
+
)
(?:
:
(?P<password>
[^
@
]
+
)?
)?
@
)?
(?P<host>
[^
@
\/
?#:
]
*
)
(?:
:
(?P<port>
\d
+
)?
)?
)?
(?P<path>
[^
?#
]
*
)
(?:
\?
(?P<query>
[^
#
]
*
)
)?
(?:
#
(?P<fragment>
.
*
)
)?
`
gm
Open regex in editor
Description
Extract URL parts only named capturing groups
Submitted by
dixanms
-
3 years ago