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 9,540 community submitted regex patterns...
0
Match all {{}} string
PCRE (PHP <7.3)
Easily match the {{}} string for web developper MVC.
Submitted by
Yannick Elusue
-
10 years ago
0
TCP/UDP port number
PCRE (PHP <7.3)
validates TCP/UDP port number (1..65535)
Submitted by
sanchox
-
10 years ago
0
webui
PCRE (PHP <7.3)
webui test
Submitted by
Stelsy
-
10 years ago
0
YouTube VideoID and ListID from URL
PCRE (PHP <7.3)
For embeding, replace with //www.youtube.com/embed/$3?list=$2$6
Submitted by
@rubenlopezgea
-
10 years ago
0
Match Linux File basename and pathname
PCRE (PHP <7.3)
Matches 2 groups - pathname and file basename, and will exclude anything on the end of the line that is not properly escaped.
Submitted by
Steve Sant
-
10 years ago
0
fgj
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
0
123
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
0
Match URL Starts with //
PCRE (PHP <7.3)
You can match the string starts with // (forward slash)
Submitted by
Sanal Menon Kalipurayath
-
10 years ago
0
parenthesized numerical expression
PCRE (PHP <7.3)
no description available
Submitted by
pooty
-
10 years ago
0
eksr
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
0
1
PCRE (PHP <7.3)
1
Submitted by
anonymous
-
10 years ago
0
test
PCRE (PHP <7.3)
test
Submitted by
test
-
10 years ago
0
sas
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
0
select html paragraph tags
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
0
fsd
PCRE (PHP <7.3)
fsdfsd
Submitted by
anonymous
-
10 years ago
0
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
0
test
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
0
eee
PCRE (PHP <7.3)
eee
Submitted by
eee
-
10 years ago
0
Meow
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
0
23
PCRE (PHP <7.3)
23
Submitted by
23
-
10 years ago
1
...
15
16
17
18
19
...
477
Community Library Entry
3
Regular Expression
Golang
`
^
(?P<scheme>
[^
:
\/
?#
]
+
)
:
(?:
\/\/
)?
(?:
(?:
(?P<login>
[^
:
]
+
)
(?:
:
(?P<password>
[^
@
]
+
)?
)?
@
)?
(?P<host>
[^
@
\/
?#:
]
*
)
(?:
:
(?P<port>
\d
+
)?
)?
)?
(?P<path>
[^
?#
]
*
)
(?:
\?
(?P<query>
[^
#
]
*
)
)?
(?:
#
(?P<fragment>
.
*
)
)?
`
gm
Open regex in editor
Description
Extract URL parts only named capturing groups
Submitted by
dixanms
-
3 years ago