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
Community Patterns
Search among 9,440 community submitted regex patterns...
0
Date Validation - Very Complex
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
3 years ago
0
Sopo UN kolokvij v2
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
3 years ago
0
Sopo UN kolokvij
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
3 years ago
0
Data Recognition - Simple
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
3 years ago
0
Complete Date Extraction
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
3 years ago
0
datePattern convert to short format
PCRE (PHP <7.3)
any number of non-word, 2-4 character Y, and any number of non word
Submitted by
anonymous
-
3 years ago
0
Kontrola hesla
PCRE (PHP <7.3)
Zkontroluje standardní rozložení vč. českých znaků
Submitted by
anonymous
-
3 years ago
0
floating point integer
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
3 years ago
0
ValidateIP4Address
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
3 years ago
0
DEBFileURL validator
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
3 years ago
0
FileURLValidation
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
3 years ago
(Last modified 3 years ago)
0
ValidateMagnetLink
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
3 years ago
0
Subpath
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
3 years ago
0
NS:Task
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
3 years ago
0
KV_simple
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
3 years ago
0
KV_simple
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
3 years ago
0
KV_base
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
3 years ago
0
LinuxFilePathValidation
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
3 years ago
0
LinuxDirectoryPathValidation
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
3 years ago
0
super cool
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
3 years ago
1
...
28
29
30
31
32
...
472
URL validation regexp
0
Regular Expression
PCRE2 (PHP >=7.3)
/
^
(?:
(
http
?
|
s
?
ftp
)
:
\/\/
|
file:
\/\/\/
)?
(
(
[
\P{Cc}
]
+
)
:
(
[
\P{Cc}
]
+
)
@
)?
(
[
a
-
zA
-
Z0
-
9
]
[
a
-
zA
-
Z0
-
9.-
]
*
)
(
:
[
0
-
9
]
{1,5}
)?
(
$
|
\/
[
\w
\-\.
_~:
\/
?[
\]
@!
\$
&'
\(\)\*\+
,;=.
]
+
(
\#
[
\w
]
*
)?
$
)
/
gixm
Open regex in editor
Description
Regexp to check URL validity and extract subparts.
Allows HTTP / HTTPs / sFTP / FTP / FTPs protocols
Allows HTTP / FTP authentication included in URL
Allows internal domain names
Allow non default port protols
You can extract subpart components of your URL :
protocol
domain name
authentication
port number
subdir
anchor
Submitted by
Damien Cuvillier
-
2 years ago