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
There are currently no sponsors.
Become a sponsor today!
Community Patterns
Search among 17,920 community submitted regex patterns...
-2
[A-Z]+[a-z]{1,2}[0-9]*
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
-2
Match v4 IP address
PCRE (PHP <7.3)
no description available
Submitted by
Budiony Damyanov
-
10 years ago
-2
Select ID from regex101 URL
ECMAScript (JavaScript)
no description available
Submitted by
Vinay
-
10 years ago
-2
Why doesn't it stop at the period?
PCRE (PHP <7.3)
try to match just the name from this: Copyright © 2005 Candy Arrington. Used by permission. All rights reserved.
Submitted by
anonymous
-
10 years ago
-2
Regular expression for both IPv6 and IPv4 URL
PCRE (PHP <7.3)
no description available
Submitted by
Henry Li
-
10 years ago
-2
test
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
-2
IP 3 words and a number
PCRE (PHP <7.3)
Matches an Ip and any 3 words and a number after separated by any number of spacing characters.
Submitted by
Attalward
-
10 years ago
-2
Unicode email sanitising
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
-2
French phone number
PCRE (PHP <7.3)
no description available
Submitted by
Benoit Anastay
-
10 years ago
-2
1_aa3
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
-2
Sample
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
-2
Regex to select text withing square brackets.
ECMAScript (JavaScript)
no description available
Submitted by
Dhrubajyoti Gogoi
-
10 years ago
-2
Find multiple XML documents in file
PCRE (PHP <7.3)
as title says
Submitted by
Doro
-
10 years ago
-2
indonesian p0rn word filter
PCRE (PHP <7.3)
find and replace bad and p0rn indonesian words
Submitted by
teknokoplak
-
10 years ago
-2
Header `Link` validator
ECMAScript (JavaScript)
no description available
Submitted by
Vaseker
-
10 years ago
-2
Date YYYYMMDD
PCRE (PHP <7.3)
Date in format YYYYMMDD Year between [1900-2099] No leap year check but month 02 is limited to 29 days.
Submitted by
Ahmed Z
-
10 years ago
-2
Matching HTML attributes
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
10 years ago
-2
Remove /* comments */ from CSS
PCRE (PHP <7.3)
no description available
Submitted by
JerseyMilker
-
10 years ago
-2
Version in Cordova config.xml
PCRE (PHP <7.3)
no description available
Submitted by
procek
-
10 years ago
-2
RegEx within tags
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
1
2
3
4
5
6
...
896
Credit Card Expiry Date
13
Regular Expression
ECMAScript (JavaScript)
/
^
(
0
[
1
-
9
]
|
1
[
0
-
2
]
)
(
\/
|
-
)
(
[
0
-
9
]
{4}
)
$
/
gm
Open regex in editor
Description
Allows inserting expiry date as MM/YYYY or MM-YYYY format
Submitted by
Rider
-
9 years ago