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 2,140 community submitted regex patterns...
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
id_name_fb
PCRE2 (PHP >=7.3)
get id, name from fb link
Submitted by
anonymous
-
a year ago
2022-08-16 16:14
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
basic email validation
PCRE2 (PHP >=7.3)
Basic email regex for quick validation
Submitted by
bUxEE
-
a year ago
2022-08-16 15:34
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
RTDM_Thread_Pool
PCRE2 (PHP >=7.3)
RTDM_Thread_Pool
Submitted by
anonymous
-
a year ago
2022-08-16 08:42
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Validation
PCRE2 (PHP >=7.3)
^a-zA-Z+@[a-zA-Z]{3,20}\.[a-z]{3}$
Submitted by
anonymous
-
a year ago
2022-08-14 08:07
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Conventional Commits Validation Regex
PCRE2 (PHP >=7.3)
This regex matches most of the rules of conventional commits .
Submitted by
Ahmed Kamal
-
a year ago
2022-08-13 19:57
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Camel Case - digits allowed
PCRE2 (PHP >=7.3)
To be proper camel case (with digits allowed) a word: MUST start with a lower case alphabet (a through z) MUST have no spaces, punctuation or special characters CAN have at most 1 uppercase alphabet in a row MAY end in an uppercase alphabet...
Submitted by
roubles
-
a year ago
2022-08-13 15:16
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
PasCamelCase
PCRE2 (PHP >=7.3)
PasCamelCase A combination of pascal and camel case. PasCamelCase is a lenient case style that is allows a phrase to use either pascal case or camel case rules. In addition, PasCamelCase allows for 2-3 letter acronyms such as Rules For a phrase to be valid PasCamelCase it:...
Submitted by
anonymous
-
a year ago
2022-08-13 02:27
(Last modified a year ago)
2022-08-13 04:21
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Camel Case - no digits allowed
PCRE2 (PHP >=7.3)
To be proper camel case a word with no digits allowed, a word: MUST start with a lower case alphabet (a through z) MUST have no digits (0 - 9) MUST have no spaces, punctuation or special characters CAN have at most 1 uppercase alphabet in a row MAY end in an uppercase alphabet...
Submitted by
roubles
-
a year ago
2022-08-12 21:09
(Last modified a year ago)
2022-08-13 13:28
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
All kinds of stupid Content-Types
PCRE2 (PHP >=7.3)
Some applications send incorrect HEADERS:Content-Type. If it needs to pass the checks (for example, on WAF) this regex maybe used
Submitted by
anonymous
-
a year ago
2022-08-12 05:11
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Password
PCRE2 (PHP >=7.3)
Password includes a,A,1,!$#%
Submitted by
anonymous
-
a year ago
2022-08-11 23:26
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
长宽高
PCRE2 (PHP >=7.3)
长宽高
Submitted by
mouxan
-
a year ago
2022-08-11 06:46
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
match extends in a class
PCRE2 (PHP >=7.3)
to match extends in a class
Submitted by
anonymous
-
a year ago
2022-08-10 15:00
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
implements Regex
PCRE2 (PHP >=7.3)
To match implements in classes
Submitted by
anonymous
-
a year ago
2022-08-10 14:59
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Laravel all routes, except some
PCRE2 (PHP >=7.3)
When creating a SPA we could capture all routes except some. Needed this for Laravel Route::get('/{any?}', function () { return 'Not captured';...
Submitted by
aldo-f
-
a year ago
2022-08-10 14:19
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
AWS EC2 Hostname
PCRE2 (PHP >=7.3)
Validates AWS EC2 Hostnames
Submitted by
holy-moly-555
-
a year ago
2022-08-10 10:25
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Date dd.mm.yyyy
PCRE2 (PHP >=7.3)
Regex for datestring validation
Submitted by
anonymous
-
a year ago
2022-08-10 08:46
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Equifax street types parser
PCRE2 (PHP >=7.3)
Street types
Submitted by
anonymous
-
a year ago
2022-08-10 07:51
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
HTML Minifier
PCRE2 (PHP >=7.3)
https://stackoverflow.com/questions/5312349/minifying-final-html-output-using-regular-expressions-with-codeigniter Thanks to @Alan Moore
Submitted by
anonymous
-
a year ago
2022-08-10 05:37
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
stage build checker
PCRE2 (PHP >=7.3)
stage build checker
Submitted by
anonymous
-
a year ago
2022-08-09 21:22
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
estoque_bling_regex
PCRE2 (PHP >=7.3)
Regex xml stock Bling
Submitted by
Dimitri
-
a year ago
2022-08-09 12:43
1
...
41
42
43
44
45
46
47
...
107
Date Range Pattern
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
Regular Expression
PCRE2 (PHP >=7.3)
/
(?<range>
\d
{4}
-
\d
{2}
-
\d
{2}
\.\.
\d
{4}
-
\d
{2}
-
\d
{2}
)
|
(?<day>
\d
{4}
-
\d
{2}
-
\d
{2}
)
|
(?<month>
\d
{4}
-
\d
{2}
)
|
(?<quarter>
\d
{4}
-Q
\d
)
|
(?<year>
\d
{4}
)
/
gm
Open regex in editor
Description
Loading markdown...
Submitted by
Stefc
-
2 years ago
2022-03-25 06:43