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,600 community submitted regex patterns...
1
Regex for JavaScript Templating
ECMAScript (JavaScript)
Selects everything between two pairs of curly braces
Submitted by
anonymous
-
6 years ago
1
Find CSS hexadecimal color values
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
6 years ago
1
Extraneous slashes in pathnames
PCRE (PHP <7.3)
This regular expression matches all extraneous slashes in pathnames, that can be removed without altering which file the path name resolves into. It is intended to be used like so: Replace $extraslashregex with the actual regular expression. my $cleanpath = $path ~= s/$extraslashregex//gmxXr;...
Submitted by
anonymous
-
6 years ago
1
French Address Regex
PCRE (PHP <7.3)
French address regex Work on ruby
Submitted by
anonymous
-
6 years ago
1
French compass direction abbrevation patern
PCRE (PHP <7.3)
French compass direction abbrevation patern with cardinal, ordinal and half-wind
Submitted by
anonymous
-
6 years ago
1
French compass direction format
PCRE (PHP <7.3)
ordinal, cardinal and half-wind
Submitted by
anonymous
-
6 years ago
1
E-Mail regex
PCRE (PHP <7.3)
A regex to catch all types of e-mail-dresses with a variety of domain names.
Submitted by
anonymous
-
4 years ago
1
FInd Dates
PCRE (PHP <7.3)
Find Dates from string
Submitted by
anonymous
-
6 years ago
1
Regular expression for parsing VK.com links.
PCRE2 (PHP >=7.3)
no description available
Submitted by
ZKelo
-
5 years ago
(Last modified 2 years ago)
1
BTC Wallet
PCRE (PHP <7.3)
BTC Wallet
Submitted by
anonymous
-
6 years ago
1
Ignore lines started with # (hash)
PCRE (PHP <7.3)
Helps to search a line over a text file with ignoring (excluding from searching) the lines started with a # (hash) symbol ^(.)?^\sdev1 #| Environment | Port-prefix | Subnet | Target-host | #dev1 300 8 ibdock2...
Submitted by
anonymous
-
6 years ago
1
Windows 10 activation key
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
6 years ago
1
Match two multiplied arrays of number literals
ECMAScript (JavaScript)
Matches exactly two arrays of number literals separated by a multiplication character, where that multiplication character is either an asterisk or an x, and an array is started with a left square bracket, and whose contents are separated by commas, and which ends with a right square bracket. Unimp...
Submitted by
anonymous
-
6 years ago
1
advanced regex example
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
5 years ago
1
Comma Separated Values
PCRE (PHP <7.3)
Separates Items in a list which is separated by a comma
Submitted by
anonymous
-
5 years ago
1
access.log V7.0
PCRE (PHP <7.3)
add layer
Submitted by
anonymous
-
5 years ago
1
URL regex
PCRE (PHP <7.3)
a universal URL regex with different groups for different parameters
Submitted by
anonymous
-
5 years ago
1
Find all html-tags except for some
PCRE (PHP <7.3)
Find all html-tags except for some that you want to preserve for any reason. I use this to remove all tags except those I want to keep.
Submitted by
anonymous
-
5 years ago
1
ПОДРОСТ
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
1
SessionM Target Parsing (WIP)
PCRE (PHP <7.3)
Work in progress Regex transform for parsing SessionM targeting config from YAML
Submitted by
anonymous
-
5 years ago
1
...
655
656
657
658
659
...
780
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