Regular
Expressions
101
Please wait while the app is loading...
Please enable JavaScript to use this web application.
Regular
Expressions
101
@regex101
Donate
Sponsor
Contact
Bug Reports & Feedback
Wiki
What's new?
What's new?
Loading content...
Close
Regex Editor
Regex Editor
Regex Library
Regex Library
Account
Account
Regex Quiz
Regex Quiz
Settings
Settings
Live Help
Live Help
Order By
Most Recent
Most Points
Fewest Points
Filter by Flavor
PCRE2
PCRE
ECMAScript
Python
Golang
Java
.NET
Sponsors
All your environment variables, in one place
Library entries
Search library
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre
Search for progressive download numbre
no description available
Submitted by
Antonio Malatesta
-
8 years ago
0
1 upvotes, 1 downvotes (50% like it) (You must be signed in to vote)
javascript
SharePoint File Name Vaidation
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
-
8 years ago
0
1 upvotes, 1 downvotes (50% like it) (You must be signed in to vote)
pcre
parse mysqldump INSERT statement field values (handles unescaping)
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
-
8 years ago
0
1 upvotes, 1 downvotes (50% like it) (You must be signed in to vote)
pcre
URL validation with http/https
URL validation with http/https
Submitted by
Gunjan
-
8 years ago
0
1 upvotes, 1 downvotes (50% like it) (You must be signed in to vote)
pcre
Key/Value pairs with multiline support
Key/Value pairs with multiline support
Submitted by
Alexander Krutov
-
8 years ago
0
1 upvotes, 1 downvotes (50% like it) (You must be signed in to vote)
pcre
A regex that tries to replace every instance in your site
For better exception capturing
Submitted by
anonymous
-
8 years ago
0
1 upvotes, 1 downvotes (50% like it) (You must be signed in to vote)
javascript
Machine readable passport number (second line)
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
-
8 years ago
0
1 upvotes, 1 downvotes (50% like it) (You must be signed in to vote)
javascript
float
no description available
Submitted by
anonymous
-
8 years ago
0
1 upvotes, 1 downvotes (50% like it) (You must be signed in to vote)
pcre
Get attributes values of html tags
Allow get the value of the some attributes from a html text
Submitted by
Marcelo Fuentes
-
8 years ago
0
1 upvotes, 1 downvotes (50% like it) (You must be signed in to vote)
pcre
time input
following input formats work-- 10am to 3pm 1am - 2pm 12pm-3pm
Submitted by
anonymous
-
8 years ago
0
1 upvotes, 1 downvotes (50% like it) (You must be signed in to vote)
javascript
WOrd with colon
no description available
Submitted by
HJ
-
8 years ago
0
2 upvotes, 2 downvotes (50% like it) (You must be signed in to vote)
javascript
find link to profile in VK html message
поиск в тексте всех ссылок на профили пользователей вконтакте. ссылки вида [id12345678|Name]
Submitted by
MixApp
-
8 years ago
0
1 upvotes, 1 downvotes (50% like it) (You must be signed in to vote)
pcre
Phone Number Extraction
US numbers only
Submitted by
codedude
-
8 years ago
0
1 upvotes, 1 downvotes (50% like it) (You must be signed in to vote)
pcre
phone valid
no description available
Submitted by
anonymous
-
8 years ago
0
1 upvotes, 1 downvotes (50% like it) (You must be signed in to vote)
pcre
Phone numbers
PHP
Submitted by
anonymous
-
8 years ago
0
1 upvotes, 1 downvotes (50% like it) (You must be signed in to vote)
javascript
Phone validate
Validate Phone number even if contain country code
Submitted by
Jorge Cervantes
-
8 years ago
0
1 upvotes, 1 downvotes (50% like it) (You must be signed in to vote)
pcre
Facebook url regex
no description available
Submitted by
Devs Devaras
-
8 years ago
0
1 upvotes, 1 downvotes (50% like it) (You must be signed in to vote)
pcre
add colon between hours and minutes to time (24h system)
This expression converts any 3- or 4 digit timevalue to a value with colon between hours and minutes. So 345 is converted to 3:45 and 1500 is converted to 15:00
Submitted by
Patrick Sinke
-
8 years ago
0
1 upvotes, 1 downvotes (50% like it) (You must be signed in to vote)
pcre
Nickname
Nickname validation. Only: letters _ One line. Tested with RoR
Submitted by
Paramoshkin Andrew
-
8 years ago
0
2 upvotes, 2 downvotes (50% like it) (You must be signed in to vote)
pcre
/[a-f0-9]{8}(?:-[a-f0-9]{4}){3}-[a-f0-9]{12}
no description available
Submitted by
anonymous
-
8 years ago
1
...
593
594
595
596
597
598
599
...
629
Date Validation
Vote
0
2 upvotes, 2 downvotes (50% like it) (You must be signed in to vote)
Regular Expression
javascript
/
^
(?:
(?:
(?:
0
?
[
13578
]
|
1
[
02
]
)
(
\/
|
-
|
\.
)
31
)
\1
|
(?:
(?:
0
?
[
1,3
-
9
]
|
1
[
0
-
2
]
)
(
\/
?
|
-
|
\.
)
(?:
29
|
30
)
\2
)
)
(?:
(?:
1
[
6
-
9
]
|
[
2
-
9
]
\d
)?
\d
{2}
)
$
|
^
(?:
(?:
0
?
2
)
(
\/
?
|
-
|
\.
)
(?:
29
)
\3
(?:
(?:
(?:
1
[
6
-
9
]
|
[
2
-
9
]
\d
)?
(?:
0
[
48
]
|
[
2468
]
[
048
]
|
[
13579
]
[
26
]
)
|
(?:(?:
16
|
[
2468
]
[
048
]
|
[
3579
]
[
26
]
)
00
)
)
)
)
$
|
^
(?:
(?:
0
?
[
1
-
9
]
)
|
(?:
1
[
0
-
2
]
)
)
(
\/
?
|
-
|
\.
)
(?:
0
?
[
1
-
9
]
|
1
\d
|
2
[
0
-
8
]
)
\4
(?:
(?:
1
[
6
-
9
]
|
[
2
-
9
]
\d
)?
\d
{2}
)
$
/
gm
Open regex in editor
Description
Loading markdown...
Submitted by
Ashish
- 8 years ago