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 15,140 community submitted regex patterns...
0
Europe - Latvia - License Plate
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
0
Europe - Latvia - IBAN
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
0
Europe - Latvia - Email
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
0
Europe - Latvia - Driver's License
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
0
Europe - Italy - TIN
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
0
Europe - Italy - Passport Number
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
0
Europe - Italy - National ID Number
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
0
Europe - Italy - License Plate
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
0
Europe - Italy - Identity Card
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
0
Europe - Italy - IBAN
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
0
Europe - Italy - Email
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
0
Europe - Italy - Driver's License
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
0
Europe - Ireland - TIN
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
0
Europe - Ireland - Passport Number
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
0
Europe - Ireland - National ID Number
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
0
Europe - Ireland - License Plate
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
0
Europe - Ireland - IBAN
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
0
Europe - Ireland - Email
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
0
Europe - Ireland - Driver's License
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
0
Europe - Lithuania - Passport Number
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
1
...
583
584
585
586
587
...
757
Validate hex color
4
Regular Expression
PCRE (PHP <7.3)
/
^
#
?
(
[
0
-
9a
-
f
]
{6}
|
[
0
-
9a
-
f
]
{3}
)
$
/
i
Open regex in editor
Description
Validates hexadecimal color codes based on the following rule set:
Optionally starting with a hash.
3 or 6 characters in length.
Using the [0-9a-f] character set.
Submitted by
Nathaniel Blackburn
-
9 years ago