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 4,400 community submitted regex patterns...
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Find a word after an immediate pattern of characters
PCRE2 (PHP >=7.3)
This is done for finding data that is allocated after a defined pattern of letters. In this case the example is, after MID, finding the MID number in a raw data string.
Submitted by
anonymous
-
a year ago
2022-04-26 20:24
(Last modified a year ago)
2022-04-26 20:52
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
判断是否有非法字符(合法字符为数字+-# 以及{"0":0, "1":1}所包含的符号)
Java 8
判断是否有非法字符(合法字符为数字+-# |以及{"0":0, "1":1}所包含的符号) 能捕获的:包含汉字、英文字符、部分分割符(;、/)、各种括号的电话
Submitted by
Jiajian Ye
-
a year ago
2022-04-26 14:37
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
#结尾的电话匹配
Java 8
#结尾的电话匹配
Submitted by
anonymous
-
a year ago
2022-04-26 14:20
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
正規表現例
PCRE2 (PHP >=7.3)
正規表現の例です
Submitted by
anonymous
-
a year ago
2022-04-26 07:32
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
匹配#结尾的电话号码和手机
Java 8
匹配#结尾的电话号码和手机
Submitted by
Leo
-
a year ago
2022-04-26 03:23
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
The list of Android permissions with their severity
Python
Find all Android permissions with their severity in HTML source code of google documentation.
Submitted by
Alticore (Antoine ADAM: https://github.com/Antoine-ADAM)
-
a year ago
2022-04-25 14:11
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Branch naming policy for internal GitHub
PCRE2 (PHP >=7.3)
To enforce branch names to include specific prefix and not allow some special characters.
Submitted by
TParry
-
a year ago
2022-04-25 09:26
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
IP Address
Java 8
IP Address RegEx
Submitted by
anonymous
-
a year ago
2022-04-24 15:40
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Money format
PCRE2 (PHP >=7.3)
Any money format
Submitted by
anonymous
-
a year ago
2022-04-24 15:29
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
find const string in code for xml/java
Python
.
Submitted by
anonymous
-
a year ago
2022-04-24 09:22
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Snap Regex
PCRE2 (PHP >=7.3)
Pull property names snap Json
Submitted by
anonymous
-
a year ago
2022-04-22 18:27
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
MyRegex
Python
"(\d+年\d+月\d+日).新增本土.确诊病例(\d+)例.无症状感染者(\d+)例.其中(\d+)例确诊病例为此前无症状.,(\d+)例确诊病例和(\d+)例无症状感染者.相关风险人群排查中发现"
Submitted by
Mark
-
a year ago
2022-04-22 14:17
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Name regex
PCRE2 (PHP >=7.3)
Custom name validation
Submitted by
anonymous
-
a year ago
2022-04-22 11:07
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
GSTN
PCRE2 (PHP >=7.3)
Goods & Service Tax Numebr
Submitted by
anonymous
-
a year ago
2022-04-21 17:37
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Extract strings between 2 delimiters
PCRE2 (PHP >=7.3)
Extract strings between a delimiter (",") or between a tabulation and a cr Example : toto@gmail.com,yoda@testmail.fr,foo@dugenou.com This expression will return bold e-mails
Submitted by
anonymous
-
a year ago
2022-04-21 13:29
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Pan Number
PCRE2 (PHP >=7.3)
Pan Number
Submitted by
anonymous
-
a year ago
2022-04-21 13:23
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
括号匹配
Java 8
(\[]\])|(【】)|(())|(\(\))
Submitted by
nasion
-
a year ago
2022-04-21 11:27
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
refactoring
PCRE2 (PHP >=7.3)
for refactoring Kotlin tests
Submitted by
nikita.bols
-
a year ago
2022-04-21 09:42
(Last modified a year ago)
2022-04-21 11:02
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
matlab代码
Python
matlab代码
Submitted by
java
-
a year ago
2022-04-21 02:19
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Test Function Block
PCRE2 (PHP >=7.3)
Test
Submitted by
anonymous
-
a year ago
2022-04-21 00:23
1
...
72
73
74
75
76
77
78
...
220
Street name and house number
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
PCRE2 (PHP >=7.3)
/
[
0
-
9a
-
zA
-
Z:,.
]
+
[
]
(?!
0
+
$
)
\d
[
\w
]
*
/
gm
Open regex in editor
Description
Loading markdown...
Submitted by
Bill Seremetis (bserem)
-
2 years ago
2022-01-28 21:29