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
Most upvotes
Most downvotes
Highest Score
Lowest Score
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 12,120 community submitted regex patterns...
0
IPv4 addresses that don't match RFC1918
PCRE (PHP <7.3)
Matches publicly available IPv4 addresses (excludes 10., 172.16-32, and 192.168 blocks).
Submitted by
anonymous
-
8 years ago
1
Liberal URL detector
PCRE (PHP <7.3)
Detects almost all URLs contained in a sentence
Submitted by
https://gist.github.com/gruber
-
8 years ago
1
<a href="([^"]*)"[^<]*>(?:(?!<\/?a\b[^<]*>)[\s\S])*<img src="([^"]*)"\
PCRE (PHP <7.3)
no description available
Submitted by
Ivan Vlajic
-
8 years ago
0
IP adress or masks
PCRE (PHP <7.3)
Match any IP adress or Subnet masks and split all bytes in capture groups
Submitted by
SkullPand4
-
8 years ago
1
URL Match and split
PCRE (PHP <7.3)
match any type of url and split each part (protocol, domain, page, GET, and ID) in capture groups
Submitted by
anonymous
-
8 years ago
1
Text by word tail-trimming regex pattern
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
1
match @user but not email@example.com
PCRE (PHP <7.3)
for finding user mentions in markdown-like comments
Submitted by
Holger Schmidt (https://github.com/forger)
-
8 years ago
1
Gaddafi
PCRE (PHP <7.3)
Matches all spellings of the name Gaddafi that I've yet discovered.
Submitted by
Klisz
-
8 years ago
1
url segment parsing
PCRE (PHP <7.3)
URL Parsing
Submitted by
Ricardo Cantu
-
8 years ago
0
Substring Matching Word, Hyphen, Underscores and Digits
PCRE (PHP <7.3)
Matches customer portion of call detail records found in the fields dcontext, lastdata, and usefield of an Asterisk CDR table. Additional processing required to get fully clean values.
Submitted by
lindstrom
-
8 years ago
1
tag remover
PCRE (PHP <7.3)
remove html tags, while leaving text in between
Submitted by
anonymous
-
8 years ago
1
Data URI scheme
PCRE (PHP <7.3)
Simple and not complete pattern for getting the items of a Data URI scheme.
Submitted by
@afoeder
-
8 years ago
1
ANGULAR IMPORT TYPESCRIPT
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
5
ipv6
PCRE (PHP <7.3)
Match an ipv6 address
Submitted by
Frusty
-
8 years ago
0
@mention parser
PCRE (PHP <7.3)
Parse @mentions in text
Submitted by
anonymous
-
8 years ago
1
Twitter hashtag
PCRE (PHP <7.3)
no description available
Submitted by
ksc
-
8 years ago
2
html{ height:100%}body{ margin:0px; padding:0px; height:100%; min-hei
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
0
Regex to match lines having string1 and not having string3
PCRE (PHP <7.3)
no description available
Submitted by
Vivek Shah
-
8 years ago
1
Date and Day
PCRE (PHP <7.3)
Thur 10 Tue 2 Mon 1 e.t.c
Submitted by
anonymous
-
8 years ago
1
regex to find img src tags into html
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
1
...
464
465
466
467
468
...
606
Community Library Entry
1
Regular Expression
Golang
`
^
(?:
https
?
:
\/\/
)?
(?:
(?:
www
\.
)?
youtube
\.
com
\/
(?:
(?:
v
\/
)
|
(?:
embed
\/
|
watch
(?:
\/
|
\?
)
){1,2}
(?:
.
*
v=
)?
|
.
*
v=
)?
|
(?:
www
\.
)?
youtu
\.
be
\/
)
(
[
A
-
Za
-
z0
-
9_
\-
]
+
)
&
?
.
*
$
`
gmi
Open regex in editor
Description
no description available
Submitted by
RyuaNerin
-
9 years ago
(Last modified a year ago)