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,040 community submitted regex patterns...
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
MAC address capturing
Python
Captures MAC addressess in any format: aa bb cc dd ee ff aa-bb-cc-dd-ee-ff aa:bb:cc:dd:ee:ff aabb.ccdd.eeff aabbccddeeff
Submitted by
Gilian
-
9 years ago
1
file name without extension
PCRE (PHP <7.3)
no description available
Submitted by
sl
-
9 years ago
1
Brazilian Phone number
ECMAScript (JavaScript)
With optional 9 digit
Submitted by
Matheus Gambati
-
9 years ago
1
Isolate string in double or single quotes
PCRE (PHP <7.3)
Isolate strings inside double or single quotes
Submitted by
garsax
-
9 years ago
1
...
843
844
845
846
847
...
902
Community Library Entry
0
Regular Expression
Python
r"
^\s
*
(
(?:
[
—‘’
\-
\w
?°
]
|
(?<=
\w
)
[
.,:
]
)+
?
[^
.
]
)
[
.,
]
*
(
[
-
\d
]
+
)
$
"
gm
Open regex in editor
Description
extract title and page from ocr of pdf content by carlleonhard
Submitted by
carlleonhard
-
2 years ago