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,420 community submitted regex patterns...
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
DOI extraction
PCRE2 (PHP >=7.3)
used to extract doi
Submitted by
Sharjeel
-
a year ago
2022-03-28 18:37
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
匹配md图片
PCRE2 (PHP >=7.3)
匹配md图片
Submitted by
anonymous
-
a year ago
2022-03-28 11:16
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
how to match for a word not to be in the input
PCRE2 (PHP >=7.3)
Not Funny vs Funny - need to match for both cases
Submitted by
anonymous
-
a year ago
2022-03-27 19:39
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
C style comments
PCRE2 (PHP >=7.3)
Regular expression to match all C style comments.
Submitted by
Seymoar Regex
-
a year ago
2022-03-27 17:18
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
09|10|11
PCRE2 (PHP >=7.3)
select 09|10
Submitted by
ekam230
-
a year ago
2022-03-26 12:10
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
hi
PCRE2 (PHP >=7.3)
hi
Submitted by
anonymous
-
2 years ago
2022-03-26 08:12
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
reverse commenting/code order
PCRE2 (PHP >=7.3)
reverses order when code is followed by comments (comments prepended with ## )
Submitted by
anonymous
-
2 years ago
2022-03-25 20:59
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
conditional lookahead (IF (pat1) or (pat2) THEN match (pat1) and/or (pat2) box
Python
Python does not support conditionals using lookaround, even though Python does support lookaround outside conditionals. (?(?=regex) then|else) is illegal in python (?=regex)then|(?!regex)else - this works. madness details in the test strings
Submitted by
PeteC
-
2 years ago
2022-03-25 19:06
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regex to match the image mime types
PCRE2 (PHP >=7.3)
Matches the image mime types. E.g image/png, image/jpeg, etc.
Submitted by
anonymous
-
2 years ago
2022-03-25 17:59
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
starts with number and ends with string or number
Python
starts with number and ends with string or number starts with +ve, -ve or decimal number
Submitted by
suraj
-
2 years ago
2022-03-25 08:54
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
Date Range Pattern
PCRE2 (PHP >=7.3)
Patternmatching of several Daterange Patterns Quarter 2021-Q2 Range...
Submitted by
Stefc
-
2 years ago
2022-03-25 06:43
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Split number and string
PCRE2 (PHP >=7.3)
Split number and string exp. data as below 17091327 Ren Xian Xtrcb County Bank Corporation Limited 50156 0862315402 19D 17091342 BaoDing QingYuan District Xtrcb Rural Bank Corporation Limit40156 0862315401 19D
Submitted by
anonymous
-
2 years ago
2022-03-25 06:22
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Email Regex
PCRE2 (PHP >=7.3)
email regex
Submitted by
anonymous
-
2 years ago
2022-03-24 00:22
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
regex_honoraires_vf_3
PCRE2 (PHP >=7.3)
guif
Submitted by
guif
-
2 years ago
2022-03-23 09:37
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
regex_honoraires_vf_2
PCRE2 (PHP >=7.3)
guif
Submitted by
guif
-
2 years ago
2022-03-23 09:30
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
regex_honoraires_prix
PCRE2 (PHP >=7.3)
guif
Submitted by
guif
-
2 years ago
2022-03-22 17:22
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Pattern for usual email address
PCRE2 (PHP >=7.3)
Intentionally leaves out weird stuff such as IPV4 or IPV6 for the domain part and quoted usernames with invalid chars in the addressee part. Handles internationalized domains with soft validation (only structural matching) and blocks domain parts starting or ending with dashes or containing double d...
Submitted by
Victor Schröder
-
2 years ago
2022-03-22 11:51
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Grabbing custom structure from markdown
PCRE2 (PHP >=7.3)
:)
Submitted by
anonymous
-
2 years ago
2022-03-21 16:49
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Canvas user quiz url to API url
Python
Turns a URL provided by the user (copied from the address bar) into a url to access the same quiz with the Canvas LMS REST API.
Submitted by
anonymous
-
2 years ago
2022-03-21 16:14
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
AA find Excel command in script
Python
find Excel command in script based on json
Submitted by
anonymous
-
2 years ago
2022-03-21 04:32
(Last modified 2 years ago)
2022-03-21 07:15
1
...
76
77
78
79
80
81
82
...
221
Commercial Query Regex
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
PCRE2 (PHP >=7.3)
/
.
*
(
best
|
top
|
vs
|
review
*
)
.
*
/
gm
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
2 years ago
2022-01-20 09:57