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...
52
Disorted Email Addresses
PCRE (PHP <7.3)
Matches distorted email addresses and converts them back to real ones.
Submitted by
dislick
-
12 years ago
40
URL regexp
PCRE (PHP <7.3)
A quite neat regular expression for URLs, e-mails..., I found on Matthew O'Riordan's blog.
Submitted by
Matthew O'Riordan
-
12 years ago
1
...
900
901
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)