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...
0
IBAN
ECMAScript (JavaScript)
Italian IBAN
Submitted by
Italo
-
9 years ago
0
Remove / delete / strip style attribute from html tags
PCRE (PHP <7.3)
This one removes ALL attributes if "style" is found. See my other expression to only remove the style.
Submitted by
socialblogsitewebdesign.com
-
9 years ago
0
Email parser, also distorted forms
Python
Parses email, also distorted ones, and convert them back to the real ones. It can recognize at maximum two dots notations, just add '.\5' at the end of the substitution string. Inspirated by dislick's work: https://regex101.com/r/wB7xJ7/1
Submitted by
fine_dust
-
9 years ago
0
two matches with pipe
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
0
date format regex for MM/dd/yyyy in javascript
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
0
token
ECMAScript (JavaScript)
replace token like [foo:bar:ba zz]
Submitted by
anonymous
-
9 years ago
0
SharePoint File Name Vaidation
ECMAScript (JavaScript)
The file name validation algorithm from MS KB905231, I assumed the prohibited suffixes included the file extension. I.e. 'foo.doc.files' would not match but 'foo.files.doc' would.
Submitted by
David Nelson
-
9 years ago
0
file extension
ECMAScript (JavaScript)
get the file extension of a given filename
Submitted by
Simon Taylor
-
9 years ago
0
parse mysqldump INSERT statement field values (handles unescaping)
PCRE (PHP <7.3)
This will parse the fields portion of a mysqldump lines such as: INSERT INTO users VALUES (42,'Bob',12.34,NULL,'It\'s ok!');
Submitted by
Steve Shreeve
-
9 years ago
0
URL validation with http/https
PCRE (PHP <7.3)
URL validation with http/https
Submitted by
Gunjan
-
9 years ago
0
Key/Value pairs with multiline support
PCRE (PHP <7.3)
Key/Value pairs with multiline support
Submitted by
Alexander Krutov
-
9 years ago
0
A regex that tries to replace every instance in your site
PCRE (PHP <7.3)
For better exception capturing
Submitted by
anonymous
-
9 years ago
0
Machine readable passport number (second line)
ECMAScript (JavaScript)
Second line of the machine readable passport, based on the excellent article here - http://www.highprogrammer.com/alan/numbers/mrp.html
Submitted by
Leigh Garland
-
9 years ago
0
float
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
0
Get attributes values of html tags
PCRE (PHP <7.3)
Allow get the value of the some attributes from a html text
Submitted by
Marcelo Fuentes
-
9 years ago
0
pass
Python
no description available
Submitted by
anonymous
-
9 years ago
0
time input
PCRE (PHP <7.3)
following input formats work-- 10am to 3pm 1am - 2pm 12pm-3pm
Submitted by
anonymous
-
9 years ago
0
Date Groupings
Python
no description available
Submitted by
flipkitty
-
9 years ago
0
WOrd with colon
ECMAScript (JavaScript)
no description available
Submitted by
HJ
-
9 years ago
0
find link to profile in VK html message
ECMAScript (JavaScript)
поиск в тексте всех ссылок на профили пользователей вконтакте. ссылки вида [id12345678|Name]
Submitted by
MixApp
-
9 years ago
1
...
31
32
33
34
35
...
902
Community Library Entry
1
Regular Expression
ECMAScript (JavaScript)
/
(
https
?
:
\/\/
)
(
(?:
[
-a
-
zA
-
Z0
-
9@:%._+~#=
]
+
)
\.
)?
(
[
-a
-
zA
-
Z0
-
9@:%._+~#=
]
{2,256}
\.
[
a
-
z
]
{2,6}
\b
|
localhost
(?:
\:
\d
{1,5}
)?
)
(
\/
[
\w
.-
]
*
)*
(
\?
[
\w
\-
._~!*'(),%=&+
]
*
)?
(
$
|
\#
.
*
|
\?
.
*
)?
/
gm
Open regex in editor
Description
Match a URL and capture its parts. Please suggest your improvements.
Submitted by
Lamer217
-
10 months ago