Please enable JavaScript to use this web application.
Regular
Expressions
101
Social
Social
Join the Discord community!
Follow me on twitter!
Send me an email
Donate
Donate
Donate through Paypal
Become a Github Sponsor
Info
Info
Find out what's new!
RegEx101 Wiki
Report bugs or make suggestions
What's new?
Loading content...
Close
Regex Editor
Regex Editor
Community Patterns
Community Patterns
Account
Account
Regex Quiz
Regex Quiz
Settings
Settings
Live Help
Live Help
Get help on Discord
Get help on IRC
Order By
Most Recent
Highest Score
Lowest Score
Most upvotes
Most downvotes
Filter by Flavor
PCRE2 (PHP >=7.3)
PCRE (PHP <7.3)
ECMAScript (JavaScript)
Python
Golang
Java 8
.NET (C#)
Rust
Sponsors
Community Patterns
Search among 5,480 community submitted regex patterns...
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
NZ Phone Number
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
6 years ago
2017-06-14 03:36
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
JSON object key matcher
ECMAScript (JavaScript)
Matches JSON object keys
Submitted by
Ariel Schiavoni
-
6 years ago
2017-06-21 15:06
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
由数字、26个英文字母或下划线组成的字符串
ECMAScript (JavaScript)
由数字、26个英文字母或下划线组成的字符串
Submitted by
anonymous
-
6 years ago
2017-06-22 04:02
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
校验密码强度
ECMAScript (JavaScript)
密码的强度必须是包含大小写字母和数字的组合,不能使用特殊字符,长度在8-10之间。
Submitted by
anonymous
-
6 years ago
2017-06-22 04:05
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
校验中文
ECMAScript (JavaScript)
字符串仅能是中文。
Submitted by
anonymous
-
6 years ago
2017-06-22 04:06
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
校验E-Mail 地址
ECMAScript (JavaScript)
同密码一样,下面是E-mail地址合规性的正则检查语句。
Submitted by
anonymous
-
6 years ago
2017-06-22 04:07
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
校验身份证号码
ECMAScript (JavaScript)
18位
Submitted by
anonymous
-
6 years ago
2017-06-22 04:09
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
校验身份证号码
ECMAScript (JavaScript)
15位
Submitted by
anonymous
-
6 years ago
2017-06-22 04:09
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
校验日期
ECMAScript (JavaScript)
“yyyy-mm-dd“ 格式的日期校验,已考虑平闰年。
Submitted by
anonymous
-
6 years ago
2017-06-22 04:10
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
校验IP-v4地址
ECMAScript (JavaScript)
IP4 正则语句
Submitted by
anonymous
-
6 years ago
2017-06-22 05:24
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
校验IP-v6地址
ECMAScript (JavaScript)
IP4 正则语句
Submitted by
anonymous
-
6 years ago
2017-06-22 05:24
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
提取Color Hex Codes
ECMAScript (JavaScript)
有时需要抽取网页中的颜色代码,可以使用下面的表达式。
Submitted by
anonymous
-
6 years ago
2017-06-22 05:29
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
提取网页图片
ECMAScript (JavaScript)
假若你想提取网页中所有图片信息,可以利用下面的表达式。
Submitted by
anonymous
-
6 years ago
2017-06-22 05:30
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
抽取注释
ECMAScript (JavaScript)
如果你需要移除HMTL中的注释,可以使用如下的表达式。
Submitted by
anonymous
-
6 years ago
2017-06-22 05:32
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
匹配HTML标签
ECMAScript (JavaScript)
通过下面的表达式可以匹配出HTML中的标签属性。
Submitted by
anonymous
-
6 years ago
2017-06-22 05:34
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
aHex color
ECMAScript (JavaScript)
no description available
Submitted by
@hachesilva
-
6 years ago
2017-06-23 20:20
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
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
-
6 years ago
2017-06-27 06:02
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
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
-
6 years ago
2017-06-29 15:16
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Romanian Exact Match
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
6 years ago
2017-07-23 07:56
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
key value pairs
ECMAScript (JavaScript)
detect key value pairs in string with key having spaces
Submitted by
anonymous
-
6 years ago
2017-07-05 09:48
1
...
165
166
167
168
169
170
171
...
274
SQL Processes Filter
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
PCRE2 (PHP >=7.3)
/
SELECT
[
\w\s
\(\*\)\,
]
*
FROM
ticket_file
[
\w\s
\"\'\`\<\>\=
]
*
/
gm
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
a year ago
2022-07-20 14:37