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 12,740 community submitted regex patterns...
8
Sentence grabber /w extra check
PCRE (PHP <7.3)
Grabs sentences including terms like: e.g. z.b. Figs.These get caught in 1st capturing group. Problem: how to only accept matching sentences which contain pattern \b\d+[a-z]{0,2}\b?
Submitted by
light0
-
10 years ago
2
Date validator for mm/dd/yy
ECMAScript (JavaScript)
no description available
Submitted by
Dheeraj Khushalani - dotnetguy.net
-
10 years ago
3
UK Postcode Checker
PCRE (PHP <7.3)
This is an improvement of the very good tH9mQ1/1. It did not pickup on the first two postcodes found here: //http://en.wikipedia.org/wiki/Postcodes_in_the_United_Kingdom
Submitted by
Flexander
-
10 years ago
5
Two or more whitespace
PCRE (PHP <7.3)
Reeplace all two or more whitespace in string with a single chararter(ej. one whitespace)
Submitted by
Lanxe
-
10 years ago
4
utf-8 hex.
PCRE (PHP <7.3)
utf-8 hex. code armenian. Firs character regexp
Submitted by
Dyxx
-
9 years ago
7
rsyslog test
PCRE (PHP <7.3)
global modifier
Submitted by
dtmland
-
9 years ago
7
Any positive integer except zero
PCRE (PHP <7.3)
no description available
Submitted by
Harsh
-
9 years ago
7
Date and time format - ISO 8601
ECMAScript (JavaScript)
Matches ISO 8601 date formats
Submitted by
Ettienne
-
8 years ago
10
Conventional Commits validation
PCRE (PHP <7.3)
This regex prevents the writing of non-standard conventional commits. I'm available on my github
Submitted by
Krisque
-
3 years ago
(Last modified a year ago)
5
Hello world !
ECMAScript (JavaScript)
no description available
Submitted by
Fedir RYKHTIK
-
11 years ago
5
All href in a tag
PCRE (PHP <7.3)
Find all href in a tag
Submitted by
Miron Yanovskiy
-
11 years ago
6
ID003 device info
PCRE (PHP <7.3)
no description available
Submitted by
sasjaq
-
10 years ago
2
Positive Numbers greater than 0 with leading zeroes.
ECMAScript (JavaScript)
Accepts all positive numbers above 0. Accepts numbers with leading zeroes e.g.: 0123, 00123.
Submitted by
Sandeep Ranka
-
10 years ago
4
Capturing items from multiple lists using a single regex
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
10 years ago
0
Number with two max possible decimals
ECMAScript (JavaScript)
For float type inputs.
Submitted by
Juanma - https://github.com/juanmaa1414
-
9 years ago
5
FIlename sanitization regular expression
PCRE (PHP <7.3)
Useful for filename sanitization. Matches invalid filename characters. Can be used in preg_replace() calls.
Submitted by
FractalizeR@yandex.ru
-
9 years ago
1
FQDN Fully Qualified Domain Name
PCRE (PHP <7.3)
Allow only two or more labels. Fix deprecated FQDN regexp not passing on test "dicas-l.com.br"
Submitted by
Rafael Justo and Mauro Trajber
-
9 years ago
4
Full e-mail validator
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
6
Validate Birth Date (d/m/Y)
PCRE (PHP <7.3)
From 1970 to 2015 Replace: (\d{4})$ for (19[7-9]\d|200-1)$
Submitted by
Valdeir Santana
-
9 years ago
4
Mask credit card
PCRE (PHP <7.3)
no description available
Submitted by
Albert Paris
-
8 years ago
1
...
5
6
7
8
9
...
637
Validate Birth Date (d/m/Y)
6
Regular Expression
PCRE (PHP <7.3)
/
^
(
0
[
1
-
9
]
|
[
1
-
2
]
[
0
-
9
]
|
3
[
0
-
1
]
)
\/
(
0
[
1
-
9
]
|
1
[
0
-
2
]
)
\/
(
\d
{4}
)
$
/
gm
Open regex in editor
Description
From 1970 to 2015 Replace: (\d{4})$ for (19[7-9]\d|20[0-1][0-5])$
Submitted by
Valdeir Santana
-
9 years ago