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 14,940 community submitted regex patterns...
1
last element in list
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2
Title Casing
ECMAScript (JavaScript)
for use in function to title case a string; function cap(str) { return str.replace(/\w\S*/g, function(txt) { return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase(); }); }
Submitted by
Tamara F
-
8 years ago
1
simple symbols
ECMAScript (JavaScript)
+a+====+b+
Submitted by
Tamara F
-
8 years ago
4
Function Declaration / Expression
ECMAScript (JavaScript)
matches both function declarations and expressions in javascript. ex. function name () {...} || function () {}
Submitted by
Ja Superior
-
8 years ago
1
email validation
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
1
email
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
1
regex title
PCRE (PHP <7.3)
yii2 regex
Submitted by
connor
-
8 years ago
1
RDATE
PCRE (PHP <7.3)
RDATE parsing REGEX
Submitted by
Brian
-
8 years ago
1
"greedy" ltv bug
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
1
c++
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
1
rigby
PCRE (PHP <7.3)
shows regular expression
Submitted by
anonymous
-
8 years ago
1
Windows SID
PCRE (PHP <7.3)
https://msdn.microsoft.com/en-us/library/windows/desktop/aa379649%28v=vs.85%29.aspx S-1-5-32-552 #The built-in system domain. S-1-5-21-109736768-1684412531-2440353719-701 # SIDS are not unique.
Submitted by
anonymous
-
8 years ago
1
Hitsuji - Equipment
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2
desanonimyse
PCRE (PHP <7.3)
no description available
Submitted by
JB EscudiƩ
-
8 years ago
0
At least 8 chars, at least a Mayus or special char & at least a number
ECMAScript (JavaScript)
no description available
Submitted by
Luis Arias :D
-
8 years ago
1
\**
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
1
bitcoin 1.00000000 minimum
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
1
Panel Mark
PCRE (PHP <7.3)
no description available
Submitted by
Hoss
-
8 years ago
1
DD Addresses
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
1
Empty ini section title
PCRE (PHP <7.3)
kust like [*]
Submitted by
CWFF
-
8 years ago
1
...
588
589
590
591
592
...
747
Extract port from URL
1
Regular Expression
PCRE (PHP <7.3)
/
(
^
(
[
A
-
Z
]
*
)
(
(
:
\/\/
)?
)
(
[
A
-
Z
\d
\.
-
]
{2,}
)
\.
(
[
A
-
Z
]
{2,}
)
:
(
\d
{2,5}
)?
)
/
i
Open regex in editor
Description
Extracts the port from different possible forms of URL
Submitted by
anonymous
-
9 years ago