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 18,020 community submitted regex patterns...
0
div to other elements
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
get file name from file path
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
OfficeStuff
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
Referencia
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
Italian geographic directory number
PCRE (PHP <7.3)
Useful to discriminate italian geographic numbers from non geographic. Regex validates also the length (in digits) of the directory number Regex considers italian country code and + sign. Italian numbers are considered geographic when are prefixed with 0. Italian prefixes length is 2-4 digits lo...
Submitted by
Stefano Coletta
-
7 years ago
0
Regex for MAC address
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
Regex for MAC address with unit tests
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
JSON object key matcher
ECMAScript (JavaScript)
Matches JSON object keys
Submitted by
Ariel Schiavoni
-
7 years ago
0
URI slug with optional slashes and query string
PCRE (PHP <7.3)
Validates a URI slug. Must: Contain lowercase alphanumeric character(s) separated with a single dash. Optionally allows:...
Submitted by
Quentin McRee
-
7 years ago
0
由数字、26个英文字母或下划线组成的字符串
ECMAScript (JavaScript)
由数字、26个英文字母或下划线组成的字符串
Submitted by
anonymous
-
7 years ago
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
1
...
100
101
102
103
104
...
901
Community Library Entry
0
Regular Expression
PCRE (PHP <7.3)
/
(
'click
\.
buttonaudio':
function
\(
evt
\)
{
(
\$\.
k2l
\.
m
.
{1,2}
a
.
{1,2}
_
{0,1}
.
{0,2}
\.
sound
)
\.
src
=
\$\(
evt
\.
currentTarget
\)\.
attr
\(
'data-audiosrc'
\)
;
)
(
\$\.
k2l
\.
m
.
{1,2}
a
.
{1,2}
_
{0,1}
.
{0,2}
\.
sound
\.
play
\(\)
;
},
)
/
g
Open regex in editor
Description
no description available
Submitted by
anonymous
-
7 years ago