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 18,000 community submitted regex patterns...
1
Match pointless spaces in space separated list
ECMAScript (JavaScript)
'test' - no match 'test test' - no match ' test' - match (space at the start) 'test ' - match (space at the end) 'test test' - match (single space in the middle)
Submitted by
J. Harry B.
-
9 years ago
1
url regex
PCRE (PHP <7.3)
spoon library
Submitted by
anonymous
-
9 years ago
1
french phone number
PCRE (PHP <7.3)
french phone number
Submitted by
lolo64
-
9 years ago
1
simple json key -value
PCRE (PHP <7.3)
simple json key -value parser
Submitted by
ReMMeR
-
9 years ago
1
•
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
1
File extention
ECMAScript (JavaScript)
Extract file extention from URL
Submitted by
anonymous
-
9 years ago
1
simple url regex (http,https)
ECMAScript (JavaScript)
To recognize url like (for the more complex one): https://word.office.live.com/wv/WordView.aspx?FBsrc=https%3A%2F%2Fwww.facebook.com%2Fattachments%2Ffile_preview.php%3Fid%3D713987203%26time%3D145332%26metadata&access_token=1606%3AAVKzw1&title=2016+Test+Document+Word+Online.doc
Submitted by
Pika
-
9 years ago
1
Match Markdown Text Paragraph at a Root Level
ECMAScript (JavaScript)
http://stackoverflow.com/q/34914559/368691
Submitted by
Gajus Kuizinas
-
9 years ago
1
logical operators
Python
no description available
Submitted by
Nicolas
-
9 years ago
1
basic emails with separator
PCRE (PHP <7.3)
infinite emails with ; separator a@b.c;a@b.c;a@b.c;a@b.c;a@b.c
Submitted by
gcolciago
-
9 years ago
1
not a character and not spaces
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
tablespace_Skipper
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
Phone numbers - Poland
PCRE (PHP <7.3)
Validates following phone number schemes: 1234567 123-45-67 12-34-578 711234567 0711234567...
Submitted by
Forseti
-
9 years ago
1
Email validation
PCRE (PHP <7.3)
Usernames with dots, dashes and underscores. Hostnames limited to 64 chars, dash disallowed at first char of domain segment, only one consecutive dash or dot, one-char domains possible, multi-subdomains, long TLDs.
Submitted by
Forseti
-
9 years ago
1
Names with hyphens or single quotes
PCRE (PHP <7.3)
Names that accept maximum of 1 hyphen or 1 Quote, does not allow white spaces, allows an unlimited length of name.
Submitted by
chakra_tavy
-
9 years ago
1
ofsream open file C++
Python
match of.open("test.txt");
Submitted by
Денис суховерхов
-
9 years ago
1
Extract variable data from multi-line text columns
PCRE (PHP <7.3)
Pulls data from the 3rd line of different columns of text.
Submitted by
Jan from StackOverflow, and John Kimball
-
9 years ago
1
Dutch postcode validation
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
Credit Card Regex
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
replace divs
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
...
62
63
64
65
66
...
900
Community Library Entry
1
Regular Expression
PCRE (PHP <7.3)
/
(
(
(
http
|
https
)
:
\/
{2}
)+
(
(
[
0
-
9a
-
z_-
]
+
\.
)+
(
aero
|
asia
|
biz
|
cat
|
com
|
coop
|
edu
|
gov
|
info
|
int
|
jobs
|
mil
|
mobi
|
museum
|
name
|
net
|
org
|
pro
|
tel
|
travel
|
ac
|
ad
|
ae
|
af
|
ag
|
ai
|
al
|
am
|
an
|
ao
|
aq
|
ar
|
as
|
at
|
au
|
aw
|
ax
|
az
|
ba
|
bb
|
bd
|
be
|
bf
|
bg
|
bh
|
bi
|
bj
|
bm
|
bn
|
bo
|
br
|
bs
|
bt
|
bv
|
bw
|
by
|
bz
|
ca
|
cc
|
cd
|
cf
|
cg
|
ch
|
ci
|
ck
|
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