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 12,780 community submitted regex patterns...
18
31 upvotes, 13 downvotes (score 55.8%) (You must be signed in to vote)
Date Regex(DD/MM/yyyy)
PCRE (PHP <7.3)
no description available
Submitted by
alcaamado
-
8 years ago
2015-08-26 06:25
15
29 upvotes, 14 downvotes (score 52.5%) (You must be signed in to vote)
IPv4
PCRE (PHP <7.3)
no description available
Submitted by
robwa
-
8 years ago
2015-12-17 08:14
6
28 upvotes, 22 downvotes (score 42.3%) (You must be signed in to vote)
Matching balanced parens, brackets, and braces
PCRE (PHP <7.3)
no description available
Submitted by
Noah Luck Easterly
-
10 years ago
2013-09-29 18:23
24
27 upvotes, 3 downvotes (score 74.4%) (You must be signed in to vote)
Parsing browser User Agents
PCRE (PHP <7.3)
From a (fairly large) list of User Agent strings, extract the OS, Browser, and Device Type.
Submitted by
OnlineCop
-
9 years ago
2015-01-23 16:47
(Last modified 5 months ago)
2023-07-19 08:36
4
26 upvotes, 22 downvotes (score 40.3%) (You must be signed in to vote)
url
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
2015-07-23 21:43
6
26 upvotes, 20 downvotes (score 42.2%) (You must be signed in to vote)
Simple Number
ECMAScript (JavaScript)
Verifies Number is a negative/positive number. Number may be a decimal, but if it is, it requires at least one number before and after the decimal place. Decimal numbers may also be negative or positive. Only 1 decimal place is allowed.
Submitted by
David P Smith
-
8 years ago
2015-10-20 16:06
6
25 upvotes, 19 downvotes (score 42.2%) (You must be signed in to vote)
json
PCRE (PHP <7.3)
{1:aa,2:bb,3:"aa:bb"}
Submitted by
suat & umut
-
9 years ago
2014-08-14 17:30
15
25 upvotes, 10 downvotes (score 54.9%) (You must be signed in to vote)
Hashtag
ECMAScript (JavaScript)
The secret of the Twitterverse.
Submitted by
Joogl
-
9 years ago
2014-10-05 17:14
11
24 upvotes, 13 downvotes (score 48.8%) (You must be signed in to vote)
Address Check Validation
PCRE (PHP <7.3)
Check for true or false street address format
Submitted by
Dilip Borad
-
10 years ago
2014-01-30 13:56
13
24 upvotes, 11 downvotes (score 57.2%) (You must be signed in to vote)
Match Gmail Email
Recommended
This entry has been specifically selected by our team to be a great submission
PCRE (PHP <7.3)
Match Gmail Email
Submitted by
Óscar EnrÃquez
-
9 years ago
2014-11-20 23:58
8
23 upvotes, 15 downvotes (score 44.7%) (You must be signed in to vote)
Validate Base64 single-line string
PCRE (PHP <7.3)
no description available
Submitted by
ka.
-
11 years ago
2013-05-31 00:35
16
23 upvotes, 7 downvotes (score 65%) (You must be signed in to vote)
Email (RFC2822)
Recommended
This entry has been specifically selected by our team to be a great submission
ECMAScript (JavaScript)
Email address compliant with RFC2822
Submitted by
Jago
-
8 years ago
2015-07-01 09:31
0
23 upvotes, 23 downvotes (score 36.1%) (You must be signed in to vote)
utf-8 language
PCRE (PHP <7.3)
this regex is support for all languages
Submitted by
Jigar Dhaduk
-
8 years ago
2015-09-15 13:13
12
23 upvotes, 11 downvotes (score 50.8%) (You must be signed in to vote)
Username with "_" "-"
ECMAScript (JavaScript)
no description available
Submitted by
Gianvy
-
8 years ago
2015-10-16 15:44
20
23 upvotes, 3 downvotes (score 78.1%) (You must be signed in to vote)
Cron schedule
Recommended
This entry has been specifically selected by our team to be a great submission
PCRE (PHP <7.3)
Validate cron lines (even the ones commented out)
Submitted by
anonymous
-
8 years ago
2016-06-02 15:45
11
22 upvotes, 11 downvotes (score 49.6%) (You must be signed in to vote)
Remove Special Ascii Characters from unicode String
PCRE (PHP <7.3)
By Using this string you can just remove ascii special characters from a unicode string characters like ♥♥♥♥ ▓▒ and other non unicode letters.
Submitted by
Hummad Hassan
-
9 years ago
2015-03-12 11:00
7
22 upvotes, 15 downvotes (score 43.5%) (You must be signed in to vote)
Match text (not within html tag)
ECMAScript (JavaScript)
no description available
Submitted by
Moistly
-
9 years ago
2015-05-12 12:38
7
21 upvotes, 14 downvotes (score 43.6%) (You must be signed in to vote)
if, else if, else condtion match
ECMAScript (JavaScript)
matches full if condition statment eg: if(condition){ ... } else if(condition){ ... }else{...
Submitted by
Ivan Jakesevic
-
9 years ago
2014-10-20 13:50
1
21 upvotes, 20 downvotes (score 36.5%) (You must be signed in to vote)
IP Addresses
PCRE (PHP <7.3)
Matches IP Addresses with minimum false positives
Submitted by
Austin-Hanson
-
8 years ago
2015-07-16 16:42
14
20 upvotes, 6 downvotes (score 57.9%) (You must be signed in to vote)
us postal/zip
ECMAScript (JavaScript)
no description available
Submitted by
jay johnson
-
10 years ago
2014-01-13 22:15
1
2
3
4
5
6
...
639