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
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 7.0 (C#)
Rust
Sponsors
Community Patterns
Search among 13,660 community submitted regex patterns...
0
Date dd.mm.yyyy
PCRE2 (PHP >=7.3)
Regex for datestring validation
Submitted by
anonymous
-
2 years ago
0
NextJS Compiler - reactRemoveProperties
PCRE (PHP <7.3)
Match Test Properties This regular expression is used on next.config.js and is used to remove test attributes from the production build. It filters any data attributes that starts with 'test', 'cy' or 'jest'. ...
Submitted by
Patrick Fantato <patrick@madebyon.com>
-
2 years ago
0
AWS EC2 Hostname
PCRE2 (PHP >=7.3)
Validates AWS EC2 Hostnames
Submitted by
holy-moly-555
-
2 years ago
0
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
-
2 years ago
0
implements Regex
PCRE2 (PHP >=7.3)
To match implements in classes
Submitted by
anonymous
-
2 years ago
0
match extends in a class
PCRE2 (PHP >=7.3)
to match extends in a class
Submitted by
anonymous
-
2 years ago
0
长宽高
PCRE2 (PHP >=7.3)
长宽高
Submitted by
mouxan
-
2 years ago
0
KPI Dash Drop-In Image Compliance
Python
This regex is designed for end users to test if there image file is name compliant.
Submitted by
Jeremiah Carlson
-
2 years ago
0
Password
PCRE2 (PHP >=7.3)
Password includes a,A,1,!$#%
Submitted by
anonymous
-
2 years ago
0
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
-
2 years ago
0
IPv4 input field validator
PCRE (PHP <7.3)
Use It for partial/complete IPv4 address input text checking. OK examples: 19 / 192. / 192.168.1 / 192.168.1.1 / 0.0.0.0 KO examples: 1A / 01 / 192.168..1
Submitted by
José Luis García Morillo
-
2 years ago
0
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
-
2 years ago
(Last modified 2 years ago)
0
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
-
2 years ago
0
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
-
2 years ago
(Last modified 2 years ago)
0
Validation
PCRE2 (PHP >=7.3)
^a-zA-Z+@[a-zA-Z]{3,20}\.[a-z]{3}$
Submitted by
anonymous
-
2 years ago
0
IPv4 w/ w/o port validation and localhost string supported
PCRE (PHP <7.3)
IPv4 w/ w/o port validation and localhost string supported
Submitted by
anonymous
-
2 years ago
0
RTDM_Thread_Pool
PCRE2 (PHP >=7.3)
RTDM_Thread_Pool
Submitted by
anonymous
-
2 years ago
0
password
PCRE (PHP <7.3)
validates password to Contain a-zA-Z0-9 and optional characters !$#@%
Submitted by
anonymous
-
2 years ago
0
basic email validation
PCRE2 (PHP >=7.3)
Basic email regex for quick validation
Submitted by
bUxEE
-
2 years ago
0
Governing Law matcher
PCRE2 (PHP >=7.3)
Nifty RegEx to match commonly-worded Govering Law clauses in agreements and contracts
Submitted by
anonymous
-
2 years ago
1
...
634
635
636
637
638
...
683
Time duration format
3
Regular Expression
PCRE (PHP <7.3)
/
^
(
\d
{1,2}
[
h
]
)
$
|
^
(
\d
+
[
m
]
)
$
|
^
(
(
\d
{1,2}
[
h
]
)
\s
(
(
(
[
0
]
?
|
[
1
-
5
]
{1}
)
[
0
-
9
]
)
[
m
]
)
)
$
/
i
Open regex in editor
Description
Match time duration in the following formats only: 1h 30m 59m 1h 33m 11h 2m
Submitted by
Pooja Khorjuvekar
-
8 years ago