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
4
4 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
javascript
Function Declaration / Expression
matches both function declarations and expressions in javascript. ex. function name () {...} || function () {}
Submitted by
Ja Superior
-
7 years ago
4
4 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
javascript
UK Postcode
no description available
Submitted by
msyed
-
7 years ago
4
4 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
javascript
Campos Decimais (pt_br)
Funciona para campos decimais para moeda nacional brasileira. Aceita números inteiros, separação por milhar e a separação decimal.
Submitted by
Murilo C. Cumerlatto
-
7 years ago
4
6 upvotes, 2 downvotes (75% like it) (You must be signed in to vote)
javascript
North American Phone Number
Validate North American phone numbers with capture groups for the Area Code, Exchange Code, Line Number, and Extension.
Submitted by
AaronBoots
-
6 years ago
4
5 upvotes, 1 downvotes (83% like it) (You must be signed in to vote)
javascript
BEST simple mail regex validator
VALIDATE ALL WOLRD MAIL RULES Very simple expression Less than 140 caracters. Validate on SonarQube typescript, javascript, angular rules ...
Submitted by
Ayslan Johnson (ayslanjohnson@gmail.com)
-
5 years ago
5
5 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
javascript
Email regex validation
RegEx email /^((?!\.)[\w-_.]*)(@\w+)(\.\w+(\.\w+)?)$/gim; Just playing with Reg Ex. This to validate emails in following ways ...
Submitted by
https://www.linkedin.com/in/peralta-steve-atileon/
-
4 years ago
5
9 upvotes, 4 downvotes (69% like it) (You must be signed in to vote)
javascript
Hello world !
no description available
Submitted by
Fedir RYKHTIK
-
10 years ago
5
12 upvotes, 7 downvotes (63% like it) (You must be signed in to vote)
javascript
Youtube ID matcher
Credit: https://gist.github.com/FinalAngel/1876898
Submitted by
anonymous
-
10 years ago
5
11 upvotes, 6 downvotes (65% like it) (You must be signed in to vote)
javascript
Accept url without www
no description available
Submitted by
anonymous
-
9 years ago
5
6 upvotes, 1 downvotes (86% like it) (You must be signed in to vote)
javascript
RegEx to validate oAuth 2.0 redirect_uri
A simple RegEx rule which should validate redirect_uri for oAuth2
Submitted by
Vlad Miller
-
9 years ago
5
6 upvotes, 1 downvotes (86% like it) (You must be signed in to vote)
javascript
Replace caracters not inside HTM tags
Select a character (or string) ingnoring if that element is inside the HTML tags. Useful to apply html tags using replace.
Submitted by
Alex5B
-
8 years ago
5
12 upvotes, 7 downvotes (63% like it) (You must be signed in to vote)
javascript
MAC address
a mac address separated by dashes or colons.
Submitted by
anonymous
-
8 years ago
5
7 upvotes, 2 downvotes (78% like it) (You must be signed in to vote)
javascript
Password strength
Regular expression for password validation Rules: 8-120 chars no spaces must contain at least one a-z char must contain at least one A-Z char...
Submitted by
@razvanz
-
8 years ago
5
5 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
javascript
IP Address (with 0s)
Matches all valid IP addresses from 0.0.0.0 to 255.255.255.255
Submitted by
Ryan Plummer
-
8 years ago
5
11 upvotes, 6 downvotes (65% like it) (You must be signed in to vote)
javascript
password 1upper 1lower 1number 1specialcharater
fjk@1Qaa$
Submitted by
Anuswadh
-
7 years ago
6
150 upvotes, 144 downvotes (51% like it) (You must be signed in to vote)
javascript
Password
no description available
Submitted by
anonymous
-
9 years ago
6
10 upvotes, 4 downvotes (71% like it) (You must be signed in to vote)
javascript
Split quotes and single words
Find " and ' quoted strings and "orphaned"/single words in a string
Submitted by
LoveIsGrief
-
9 years ago
6
7 upvotes, 1 downvotes (88% like it) (You must be signed in to vote)
javascript
TimezoneOffset
used to parse timezone in the format -08:00 or +05:30
Submitted by
Neha
-
8 years ago
6
11 upvotes, 5 downvotes (69% like it) (You must be signed in to vote)
javascript
search word with an accent
search any word with an accent
Submitted by
Thegner Pierre
-
8 years ago
6
12 upvotes, 6 downvotes (67% like it) (You must be signed in to vote)
javascript
Email with + symbol
email that accepts the plus (+) symbol
Submitted by
luckcheese
-
8 years ago
1
...
179
180
181
182
183
184
Regular Expression for Date
Vote
1
2 upvotes, 1 downvotes (67% like it) (You must be signed in to vote)
Regular Expression
javascript
/
^
(?:
^
(?:
(?:
(?:(?:(?:
0
?
[
13578
]
|
1
[
02
]
)
[
-
/.
]
31
)|
(?:(?:
0
?
[
13
-
9
]
|
1
[
0
-
2
]
)
[
-
/.
]
(?:
29
|
30
)))
[
-
/.
]
(?:
1
[
6
-
9
]
|
[
2
-
9
]
\d
)
\d
{2}
)
|
(?:
0
?
2
[
-
/.
]
29
[
-
/.
]
(?:(?:(?:
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
]
)
[
-
/.
]
(?:
(?:
1
[
6
-
9
]
|
[
2
-
9
]
\d
)
\d
{2}
)
)
$
)
$
/
Open regex in editor
Description
Loading markdown...
Submitted by
Priyanka Khadilkar
- 9 years ago