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 15,400 community submitted regex patterns...
1
Atomic group
PCRE (PHP <7.3)
Atomic Groups are non-capturing and once a match is made will exit the atomic group and throw away all backtracks. Use Atomic Groups for optimising performance. A non-atomic expression \b(foobar|foot|foo)\b and a test string of foots will: match foo of foobar => fail and backtrack to the 2nd alter...
Submitted by
anonymous
-
8 years ago
1
hastags shortcuts
PCRE (PHP <7.3)
This regexp is used in the SPIP cms for create tags fastly when you are writting a post.
Submitted by
pierre.laszczak@gmail.com
-
8 years ago
0
detect if input is valid domain name
PCRE (PHP <7.3)
no description available
Submitted by
nnnn20430
-
8 years ago
1
Lines file First and Last Node
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
1
Java
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
1
pohe no nubmer valdiation
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
1
CR with no LF or PG at the end
PCRE (PHP <7.3)
Match lines with CR (Carriege Return) with no LF (Line Feed - New Line) or PG (Page Break) next to it.
Submitted by
Hans Mauricio Burbano E
-
8 years ago
1
Non Capturing Group
PCRE (PHP <7.3)
It won't capture in the group.we can't back refrence A(?:nt|pple)\sA\1
Submitted by
anonymous
-
8 years ago
1
Property control Number PCN
ECMAScript (JavaScript)
is just the format for the property control number on the Palm Beach County Florida
Submitted by
Jose Manuel Borroto
-
8 years ago
1
Empty ini section title
PCRE (PHP <7.3)
kust like [*]
Submitted by
CWFF
-
8 years ago
1
DD Addresses
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
bitcoin 1.00000000 minimum
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
1
\**
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
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
Hitsuji - Equipment
PCRE (PHP <7.3)
no description available
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
rigby
PCRE (PHP <7.3)
shows regular expression
Submitted by
anonymous
-
8 years ago
1
c++
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
1
"greedy" ltv bug
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
1
...
168
169
170
171
172
...
770
Getting Parts of URL
0
Regular Expression
PCRE2 (PHP >=7.3)
/
^
(
(
http
[
s
]
?
|
ftp
)
:
\/
)?
\/
?
(
[^
:
\/
\s
]
+
)
(
(
\/
\w
+
)*
\/
)
(
[
\w
\-\.
]
+
[^
#?
\s
]
+
)
(
.
*
)?
(
#
[
\w
\-
]
+
)?
$
/
gm
Open regex in editor
Description
https://stackoverflow.com/questions/27745/getting-parts-of-a-url-regex
Submitted by
anonymous
-
3 years ago