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 2,640 community submitted regex patterns...
3
example
PCRE2 (PHP >=7.3)
example
Submitted by
anonymous
-
3 years ago
3
Match any url in text or html (http, https)
PCRE2 (PHP >=7.3)
Match any url in text or html (http, https)
Submitted by
Jérémy Munsch
-
2 years ago
3
Extract URL parts only named capturing groups
Golang
Extract URL parts only named capturing groups
Submitted by
dixanms
-
2 years ago
3
Remove extra/useless python elements for GPT input.
PCRE2 (PHP >=7.3)
This RegEx removes unused elements such as inline comments and blank lines in python code. This will save you tokens and time when using GPT-3+ or ChatGPT to help code and debug.
Submitted by
LukeL
-
a year ago
(Last modified a year ago)
4
CloudFlare
PCRE2 (PHP >=7.3)
Cloud Flare
Submitted by
anonymous
-
3 years ago
4
Email
PCRE2 (PHP >=7.3)
email format control
Submitted by
ahmetbarut
-
3 years ago
18
Get path from any text
Recommended
PCRE2 (PHP >=7.3)
Get path (windows style) from any type of text (error message, e-mail corps ...), quoted or not. THIS IS THE SINGLE LINE VERSION !_ If you want understand how it work or edit it, go https://regex101.com/r/7o2fyy Relative path are not supported...
Submitted by
nitrateag
-
a year ago
(Last modified a year ago)
1
...
130
131
132
German vehicle registration incl. options
1
Regular Expression
PCRE (PHP <7.3)
/
^
(
[
A
-
ZäÄÖÜ
]
{1,3}
)
\-
[
]
{0,1}
(
[
A
-
Z
]
{0,2}
)
[
]
{0,1}
(
[
0
-
9
]
{1,4}
[
HE
]
{0,1}
)
[
]
{0,1}
(
[
0
-
9
]
{0,2}
)
[
]
{0,1}
(
[
0
-
9
]
{0,2}
)
$
/
gm
Open regex in editor
Description
This regex validates German vehicle registration numbers. It includes 'H' for Oldtimers (Historic) and 'E' for electric. Futhermore it validates optional seasonal plates. For example for motorcycles or recreational vehicles.
Submitted by
awwillia
-
3 years ago