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
Most upvotes
Most downvotes
Highest Score
Lowest Score
Filter by Flavor
PCRE2 (PHP >=7.3)
PCRE (PHP <7.3)
ECMAScript (JavaScript)
Python
Golang
Java 8
.NET 7.0 (C#)
Rust
Sponsors
There are currently no sponsors.
Become a sponsor today!
Community Patterns
Search among 18,040 community submitted regex patterns...
0
Camel Case - digits allowed - Upto 3 upper case letters
.NET 7.0 (C#)
Camel Case - digits allowed - Upto 3 upper case letters To be proper camel case a word with digits allowed and upto 3 upper case letters, a word: MUST start with a lower case alphabet (a through z) MUST have no spaces, punctuation or special characters CAN have at most 3 uppercase alphabets in a ro...
Submitted by
anonymous
-
2 years ago
0
Camel Case - no digits allowed - Upto 3 upper case letters
.NET 7.0 (C#)
To be proper camel case a word with no digits allowed and upto 3 upper case letters, 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 3 uppercase alphabets in a row Can end in an uppercase ...
Submitted by
anonymous
-
2 years ago
(Last modified 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
Match any number greater than 14 using regexp
ECMAScript (JavaScript)
Any number greater than 14 means: Any number with 3 or more digits with possible leading 0's Any number with 2 digits where the first digit in in the character class [2-9] Any number with 2 digits where the first digit is 1 and the second digit in in the character class [5-9] Inspired by:...
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
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
Password
PCRE2 (PHP >=7.3)
Password includes a,A,1,!$#%
Submitted by
anonymous
-
2 years ago
0
REGEX OS
Java 8
Regex para extrair titulo e descrição duma OS
Submitted by
anonymous
-
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
长宽高
PCRE2 (PHP >=7.3)
长宽高
Submitted by
mouxan
-
2 years ago
-2
Match whitespace and colon, except in specific words
ECMAScript (JavaScript)
For string splitting / deconstructing
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
implements Regex
PCRE2 (PHP >=7.3)
To match implements in classes
Submitted by
anonymous
-
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
AWS EC2 Hostname
PCRE2 (PHP >=7.3)
Validates AWS EC2 Hostnames
Submitted by
holy-moly-555
-
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
Date dd.mm.yyyy
PCRE2 (PHP >=7.3)
Regex for datestring validation
Submitted by
anonymous
-
2 years ago
0
Equifax street types parser
PCRE2 (PHP >=7.3)
Street types
Submitted by
anonymous
-
2 years ago
2
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
-
2 years ago
0
stage build checker
PCRE2 (PHP >=7.3)
stage build checker
Submitted by
anonymous
-
2 years ago
1
...
122
123
124
125
126
...
902
Community Library Entry
0
Regular Expression
PCRE2 (PHP >=7.3)
/
\b
(
[
A
-
Z
]
{2}
)
[^
A
-
Z0
-
9
]
*
?
(
[
0
-
9
]
{1,2}
)
[^
A
-
Z0
-
9
]
*
?
(
[
A
-
Z
]
{0,3}
)
[^
A
-
Z0
-
9
]
*
?
(
[
0
-
9
]
{4}
)
\b
/
gi
Open regex in editor
Description
lenient validator (for transformation)
/\b([A-Z]{2})[^A-Z0-9]*?([0-9]{1,2})[^A-Z0-9]*?([A-Z]{0,3})[^A-Z0-9]*?([0-9]{4})\b/i
Matches 4 groups like:
RJ
02
FG
5343
Will match:
RJ03QH3918
RJ 03QH 3918
RJ-03-QH-3918
MP,,,03-QH3998
Will not match:
MP,,01,03-QH3998
MP03QH399998
Submitted by
Birla
-
2 years ago
(Last modified 2 years ago)