Please enable JavaScript to use this web application.
Regular
Expressions
101
Social
Social
Join the Discord community!
Follow me on twitter!
Send me an email
Donate
Donate
Donate through Paypal
Become a Github Sponsor
Info
Info
Find out what's new!
RegEx101 Wiki
Report bugs or make suggestions
What's new?
Loading content...
Close
Regex Editor
Regex Editor
Community Patterns
Community Patterns
Account
Account
Regex Quiz
Regex Quiz
Settings
Settings
Live Help
Live Help
Get help on Discord
Get help on IRC
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 (C#)
Rust
Sponsors
Community Patterns
Search among 14,660 community submitted regex patterns...
1
4 upvotes, 3 downvotes (score 25%) (You must be signed in to vote)
Extract domain and path from video embeds
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-06-26 01:10
1
2 upvotes, 1 downvotes (score 20.8%) (You must be signed in to vote)
C-Syle If Statement to Excel
ECMAScript (JavaScript)
no description available
Submitted by
nomloc
-
8 years ago
2015-06-25 21:12
1
4 upvotes, 3 downvotes (score 25%) (You must be signed in to vote)
CPF
ECMAScript (JavaScript)
Validador de CPF
Submitted by
Gustavo Américo
-
8 years ago
2015-06-25 19:04
-3
5 upvotes, 8 downvotes (score 17.7%) (You must be signed in to vote)
FQDN Fully Qualified Domain Name
PCRE (PHP <7.3)
no description available
Submitted by
Rafael Justo and Mauro Trajber
-
8 years ago
2015-06-25 16:31
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Encontrar espaço em branco duplicado
PCRE (PHP <7.3)
White space
Submitted by
Gustavo Américo
-
8 years ago
2015-06-25 15:53
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
extract java property name and value
PCRE (PHP <7.3)
correctly handle the case where the value is splitted on multiple lines.
Submitted by
Zart Colwing
-
8 years ago
2015-06-25 15:05
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Single-line comment extraction
PCRE (PHP <7.3)
no description available
Submitted by
Jeff Hansen
-
8 years ago
2015-06-25 12:58
0
2 upvotes, 2 downvotes (score 15%) (You must be signed in to vote)
str with whitespace not starting with space
Python
no description available
Submitted by
anonymous
-
8 years ago
2015-06-25 08:26
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
EIS Chef Runlist Regex
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-06-25 03:18
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
URL infos
PCRE (PHP <7.3)
A powerful regex (fewest steps possible) which gives you all the information about urls.
Submitted by
MCMainiac
-
8 years ago
2015-06-24 21:50
0
6 upvotes, 6 downvotes (score 25.4%) (You must be signed in to vote)
Fully Qualified Domain Name FQDN
PCRE (PHP <7.3)
Fully qualified domain name validation
Submitted by
ximbs
-
8 years ago
2015-06-24 20:11
-2
2 upvotes, 4 downvotes (score 9.7%) (You must be signed in to vote)
Match words in a string
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
2015-06-24 18:55
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
CSS Minimizer
PCRE (PHP <7.3)
Takes any valid CSS and minimizes it, removing comments and whitespace. Can be called with something like PHP's preg_replace() to dynamically minimize css files.
Submitted by
skoskie
-
8 years ago
2015-06-24 17:28
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
UK TEL
ECMAScript (JavaScript)
UK Telephone Number REGEX no () and no spaces
Submitted by
\JOLLY
-
8 years ago
2015-06-24 16:47
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
teste
Python
tes
Submitted by
tes
-
8 years ago
2015-06-24 15:41
1
2 upvotes, 1 downvotes (score 20.8%) (You must be signed in to vote)
Name Validation
PCRE (PHP <7.3)
Start with capital letter. Allowed special characters '(Apostrophe) -(hyphen) .(dot) (space) and can not end with -(Hyphen)
Submitted by
Venu Nimmagadda
-
8 years ago
2015-06-24 14:41
7
11 upvotes, 4 downvotes (score 48%) (You must be signed in to vote)
RFC 3987 compliant URL regex
ECMAScript (JavaScript)
This is a JavaScript port of the URL regex from http://stackoverflow.com/a/190405/384062 that includes a bug fix and some optimization. Mathias Bynens's Regenerate was used to convert unicode escapes. Bug fix: Eliminated stray | falsely allowing querystring to contain | ...
Submitted by
Hans Meyer
-
8 years ago
2015-06-24 14:07
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Extract name and value from CSS border-radius
ECMAScript (JavaScript)
no description available
Submitted by
pmk
-
8 years ago
2015-06-24 12:03
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
ie 11 check
ECMAScript (JavaScript)
checks for ie 11 user agent
Submitted by
Yamakichi
-
8 years ago
2015-06-24 11:08
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
FIND BETWEEN QUOTES
PCRE (PHP <7.3)
Dovrebbe beccare anche eventuali caratteri '' (due apici singoli)
Submitted by
m.montesi
-
8 years ago
2015-06-24 10:24
1
...
665
666
667
668
669
670
671
...
733
javascript regex ftp directory list
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
Regular Expression
ECMAScript (JavaScript)
/
^
(
[
\-
ld
]
)
(
(
[
\-
r
]
[
\-
w
]
[
\-
xs
]
){3}
)
\s
+
(
\d
+
)
\s
+
(
\w
+
)
\s
+
(
\w
+
)
\s
+
(
\d
+
)
\s
+
(
(
(
\w
{3}
)
\s
+
(
\d
{2}
)
\s
+
(
\d
{1,2}
)
:
(
\d
{2}
)
)
|
(
(
\w
{3}
)
\s
+
(
\d
{2}
)
\s
+
(
\d
{4}
)
)
)
\s
+
(
.
+
)
$
/
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
8 years ago
2015-06-23 11:55