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 11,780 community submitted regex patterns...
1
URL with port and hash
PCRE (PHP <7.3)
URL with port and hash
Submitted by
anonymous
-
4 years ago
1
Exclude extension from file basename
PCRE (PHP <7.3)
Description Exclude extension from file basename - get filename only! BASENAME = FILENAME.EXTENSION
Submitted by
Cober@Axterbach
-
4 years ago
1
IPv4 private CIDR range RFC1918
Golang
Validates that you provide a CIDR in one of the following valid ranges. 0.0.0 – 127.255.255.255 127.0.0.0/8 0.0.0 – 10.255.255.255 10.0.0.0/8 16.0.0 – 172. 31.255.255 172.16.0.0/12 192.168.0.0 – 192.168.255.255 192.168.0.0/16...
Submitted by
David Stockton
-
4 years ago
1
Exclude subdirs from URL
PCRE (PHP <7.3)
Excludes certain subdirs unless they contain specific valid patterns
Submitted by
anonymous
-
4 years ago
1
Iranian Mobile Numbers
PCRE (PHP <7.3)
Iranian Mobile Numbers By: EmIT (Seyed Emad Armoun) www.EmadArmoun.ir
Submitted by
anonymous
-
4 years ago
1
Match what we don't want, to replace with empty
PCRE (PHP <7.3)
This was necessary for cases such as the Amazon Settlements reports To import these, we concatenate many file into one. The header in this concatenated file is reapeated as many times as files were concatenated. We have seen that is there are no sales with a promotion for a determined period, the fi...
Submitted by
anonymous
-
4 years ago
1
Name,last name, first name, full name
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
1
H codes in string PHP
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
1
Capture digits and extension of North American phone number (North American Numbering Plan)
PCRE (PHP <7.3)
strips Country Code 1 &/or token **strips separators **strips separators **strips extra digits in vanity phone numbers strips extension delimiter ${ext} or ${4} captures n-digit extension
Submitted by
anonymous
-
4 years ago
1
link finder
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
1
Find parameters in Oracle dynamic scripts
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
1
URL test
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
1
RegEx 03
PCRE (PHP <7.3)
Desafio proposto pelo Brunno: Apenas a palavra "velit". Todas as suas aparições no texto - 11/03/2020.
Submitted by
Paula Picolott (ppicolott)
-
4 years ago
1
discworld mud player titles
PCRE (PHP <7.3)
Comprehensively matches every possible pre-name player title in discworldmud. http://discworld.starturtle.net/lpc/ https://dwwiki.mooo.com/wiki/Title
Submitted by
Zimbus
-
4 years ago
1
Date Match
PCRE (PHP <7.3)
Date Match
Submitted by
anonymous
-
4 years ago
1
Matching Same Text Again & Again
PCRE (PHP <7.3)
Matching Same Text Again & Again
Submitted by
anonymous
-
4 years ago
1
Retailer Regex
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
1
html tag
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
1
JSON Validation (RFC-8259)
PCRE (PHP <7.3)
PCRE Regular expression that validates JSON according to grammar specified at RFC-8259 (https://tools.ietf.org/html/rfc8259)
Submitted by
anonymous
-
4 years ago
1
Match HTML Tags
PCRE (PHP <7.3)
Based on an expression from haacked.com
Submitted by
anonymous
-
4 years ago
1
...
520
521
522
523
524
...
589
URL regexp
40
Regular Expression
PCRE (PHP <7.3)
/
(
(
(
[
A
-
Za
-
z
]
{3,9}
:
(?:
\/\/
)?
)
(?:
[
-;:&=
\+\$
,
\w
]
+
@
)?
[
A
-
Za
-
z0
-
9.-
]
+
|
(?:
www
.
|
[
-;:&=
\+\$
,
\w
]
+
@
)
[
A
-
Za
-
z0
-
9.-
]
+
)
(
(?:
\/
[
\+
~%
\/
.
\w
-_
]
*
)?
\?
?
(?:
[
-
\+
=&;%@.
\w
_
]
*
)
#
?
(?:
[
.
\!\/\\
w
]
*
)
)?
)
/
ig
Open regex in editor
Description
A quite neat regular expression for URLs, e-mails..., I found on Matthew O'Riordan's blog.
Submitted by
Matthew O'Riordan
-
11 years ago