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 13,740 community submitted regex patterns...
11
42 upvotes, 31 downvotes (score 46.1%) (You must be signed in to vote)
Date(Including Leap Year) YYYY-MM-DD hh:mm:ss
PCRE (PHP <7.3)
Validates DateTime of format YYYY-MM-DD hh:mm:ss including Leap Year
Submitted by
Madhan
-
10 years ago
2014-03-14 16:49
0
41 upvotes, 41 downvotes (score 39.4%) (You must be signed in to vote)
URL matching
PCRE (PHP <7.3)
Complete url matching with storage of various parameters
Submitted by
hjpotter92
-
9 years ago
2014-07-02 06:34
1
37 upvotes, 36 downvotes (score 39.5%) (You must be signed in to vote)
Validate alphanumeric and numeric range
PCRE (PHP <7.3)
For Validating alphanumeric and numeric range
Submitted by
anonymous
-
9 years ago
2014-09-22 09:13
13
35 upvotes, 22 downvotes (score 48.4%) (You must be signed in to vote)
PHP variable name
PCRE (PHP <7.3)
Valid PHP variable name as defined in the manual at http://php.net/manual/en/language.variables.basics.php
Submitted by
Erin Millard
-
11 years ago
2013-02-05 09:18
9
35 upvotes, 26 downvotes (score 44.9%) (You must be signed in to vote)
only numbers
PCRE (PHP <7.3)
A string with only numbers in
Submitted by
Gotts
-
8 years ago
2015-11-26 16:19
17
34 upvotes, 17 downvotes (score 53%) (You must be signed in to vote)
Between tags content
PCRE (PHP <7.3)
no description available
Submitted by
Agustín Bouillet
-
8 years ago
2015-10-24 10:52
3
33 upvotes, 30 downvotes (score 40.3%) (You must be signed in to vote)
phone
Python
matches: + example: +52 33 3884 7720 +1 770 343 5788
Submitted by
miqui
-
9 years ago
2015-05-07 17:14
17
31 upvotes, 14 downvotes (score 54.3%) (You must be signed in to vote)
Capture comma separated numbers
PCRE (PHP <7.3)
Capture comma separated numbers, no matter if there are spaces before or after the commas.
Submitted by
Fernando Nunes
-
8 years ago
2015-07-19 01:57
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
7
30 upvotes, 23 downvotes (score 43.3%) (You must be signed in to vote)
Extract Protocol, URL, URL Path, get parameters and hash from URI
Python
This is simplified from my last submission.
Submitted by
Dale O'Brien
-
10 years ago
2014-05-22 23:34
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
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
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
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
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
1
2
3
4
5
...
687
google video 域名
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
PCRE2 (PHP >=7.3)
/
rr
\d
---sn-
\w
{8}
.
googlevideo
.
com
/
gm
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
6 months ago
2023-05-31 02:49