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
18
31 upvotes, 13 downvotes (70% like it) (You must be signed in to vote)
pcre
Date Regex(DD/MM/yyyy)
no description available
Submitted by
alcaamado
-
8 years ago
17
309 upvotes, 292 downvotes (51% like it) (You must be signed in to vote)
pcre
Date: DD-MM-YYYY hh:mm:ss
Validate and capture dateTime parts, includes validation for leap years, range 1000-2999. Fixed bug
Submitted by
Ka.
-
10 years ago
17
118 upvotes, 101 downvotes (54% like it) (You must be signed in to vote)
pcre
Email validation
no description available
Submitted by
tutsplus.com
-
9 years ago
17
31 upvotes, 14 downvotes (69% like it) (You must be signed in to vote)
pcre
Capture comma separated numbers
Capture comma separated numbers, no matter if there are spaces before or after the commas.
Submitted by
Fernando Nunes
-
8 years ago
17
34 upvotes, 17 downvotes (67% like it) (You must be signed in to vote)
pcre
Between tags content
no description available
Submitted by
Agustín Bouillet
-
8 years ago
16
90 upvotes, 74 downvotes (55% like it) (You must be signed in to vote)
javascript
Password
Safe Password that allow only with a number, a lowercase, a uppercase, and a special character
Submitted by
davidlondono
-
8 years ago
16
101 upvotes, 85 downvotes (54% like it) (You must be signed in to vote)
pcre
Alphanumeric Regex
no description available
Submitted by
Deepan
-
8 years ago
16
74 upvotes, 58 downvotes (56% like it) (You must be signed in to vote)
javascript
http url regex
general purpose HTTP URL regex
Submitted by
Miguel Castillo @manchagnu
-
8 years ago
16
29 upvotes, 13 downvotes (69% like it) (You must be signed in to vote)
pcre
IPv4
no description available
Submitted by
robwa
-
7 years ago
16
17 upvotes, 1 downvotes (94% like it) (You must be signed in to vote)
pcre
Cron schedule
Validate cron lines (even the ones commented out)
Submitted by
anonymous
-
7 years ago
15
25 upvotes, 10 downvotes (71% like it) (You must be signed in to vote)
javascript
Hashtag
The secret of the Twitterverse.
Submitted by
Joogl
-
9 years ago
15
19 upvotes, 4 downvotes (83% like it) (You must be signed in to vote)
javascript
Email (RFC2822)
Email address compliant with RFC2822
Submitted by
Jago
-
8 years ago
14
92 upvotes, 78 downvotes (54% like it) (You must be signed in to vote)
javascript
Phone Number
Allows phone numbers with optional country code, optional special characters and whitespace
Submitted by
Tlmader
-
8 years ago
13
35 upvotes, 22 downvotes (61% like it) (You must be signed in to vote)
pcre
PHP variable name
Valid PHP variable name as defined in the manual at http://php.net/manual/en/language.variables.basics.php
Submitted by
Erin Millard
-
10 years ago
13
19 upvotes, 6 downvotes (76% like it) (You must be signed in to vote)
javascript
us postal/zip
no description available
Submitted by
jay johnson
-
9 years ago
13
53 upvotes, 40 downvotes (57% like it) (You must be signed in to vote)
pcre
regex101.com id grabber
grabs the ID for the regex101.com permalink to code
Submitted by
chris mccoy
-
9 years ago
13
19 upvotes, 6 downvotes (76% like it) (You must be signed in to vote)
javascript
Credit Card Expiry Date
Allows inserting expiry date as MM/YYYY or MM-YYYY format
Submitted by
Rider
-
8 years ago
12
75 upvotes, 63 downvotes (54% like it) (You must be signed in to vote)
pcre
URL Validator
Validates - URLs with schemes - http, https and ftp Relative URL starting with / and ../
Submitted by
anonymous
-
9 years ago
12
31 upvotes, 19 downvotes (62% like it) (You must be signed in to vote)
javascript
Full name (Turkish)
Matches case insensitive first name, optional unlimited number of middle names and last name separated with space format. Replaced \w with explicit char range for Turkish support. (Äž accepted as first char not to over complex)
Submitted by
CKK
-
9 years ago
12
23 upvotes, 11 downvotes (68% like it) (You must be signed in to vote)
pcre
Match Gmail Email
Match Gmail Email
Submitted by
Óscar EnrÃquez
-
9 years ago
1
2
3
4
5
...
643
Date: DD-MM-YYYY hh:mm:ss
Vote
17
309 upvotes, 292 downvotes (51% like it) (You must be signed in to vote)
Regular Expression
pcre
/
^
(
0
[
1
-
9
]
|
1
\d
|
2
[
0
-
8
]
|
29
(?=
-
\d\d
-
(?!
1
[
01345789
]
00
|
2
[
1235679
]
00
)
\d\d
(?:
[
02468
]
[
048
]
|
[
13579
]
[
26
]
)
)
|
30
(?!
-02
)
|
31
(?=
-0
[
13578
]
|
-1
[
02
]
)
)
-
(
0
[
1
-
9
]
|
1
[
0
-
2
]
)
-
(
[
12
]
\d
{3}
)
(
[
01
]
\d
|
2
[
0
-
3
]
)
:
(
[
0
-
5
]
\d
)
:
(
[
0
-
5
]
\d
)
$
/
gm
Open regex in editor
Description
Loading markdown...
Submitted by
Ka.
- 10 years ago