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 9,620 community submitted regex patterns...
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Get Content within brackets
PCRE (PHP <7.3)
Get Content within brackets
Submitted by
anonymous
-
8 years ago
2015-08-06 08:39
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Israeli Phone Number
PCRE (PHP <7.3)
Validate Israeli common phone numbers (simple landline and mobile only, no special / free / premium numbers)
Submitted by
uda
-
8 years ago
2015-08-06 12:15
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
URL validator with tests
PCRE (PHP <7.3)
inspired by https://mathiasbynens.be/demo/url-regex and the pattern from @imme_emosol
Submitted by
Elmervc
-
8 years ago
2015-08-06 14:03
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
tag replace
PCRE (PHP <7.3)
no description available
Submitted by
Lexx918
-
8 years ago
2015-08-07 07:36
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Regexp for mediawiki
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-08-07 16:02
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Originale
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-08-07 18:11
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Timestamp from json
PCRE (PHP <7.3)
no description available
Submitted by
Thomas Khalil
-
8 years ago
2015-08-09 22:56
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Phone Number (msisdn) filter
PCRE (PHP <7.3)
MSISDN filter. Should match worldwide phone numbers. It doesn't work for numbers with dashes, so just replace them with empty strings, or edit as you wish.
Submitted by
maricn
-
8 years ago
2015-08-10 10:45
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Secure HTTP Header: Public-Key-Pins
PCRE (PHP <7.3)
Check if HTTP Header of Public-Key-Pins has all nessery values for highest security
Submitted by
Nils Werner
-
8 years ago
2015-08-10 12:33
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
sdf
PCRE (PHP <7.3)
f
Submitted by
f
-
8 years ago
2015-08-10 15:55
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Find Single Instance
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-08-10 18:19
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
find a valid SO file
PCRE (PHP <7.3)
This regex allow to validate a .so file (with an additional version)
Submitted by
anonymous
-
8 years ago
2015-08-11 08:07
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
PTK:DateOfIssuance
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-08-11 08:46
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
spamk rule
PCRE (PHP <7.3)
recognize more than 1000 mails per today with this regex
Submitted by
alex kippar
-
8 years ago
2015-08-11 10:28
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Apache/Nginx Logs parsing
PCRE (PHP <7.3)
Log Format - combined + cookie at the end. Pattern Desc - combined for all groups.
Submitted by
Samuil Dichev
-
8 years ago
2015-08-11 10:29
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
ms internet explorer vesion <= 8
PCRE (PHP <7.3)
Check version of internet explorer - if is it usable for html5 support etc.
Submitted by
tomish.net
-
8 years ago
2015-08-11 12:53
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
URL detector
PCRE (PHP <7.3)
no description available
Submitted by
pawel
-
8 years ago
2015-08-12 11:08
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Get text within pipe placeholders
PCRE (PHP <7.3)
Will return all matches of text between pipe placeholders, e.g. "This text has |two| placeholders |inside| of it" will return matches for two and inside.
Submitted by
Eddie Y
-
8 years ago
2015-08-12 13:31
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
email
PCRE (PHP <7.3)
accept empty spaces at start and end
Submitted by
Emanuel Lima (jose.emanuel.lima@gmail.com)
-
8 years ago
2015-08-12 22:14
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
viduregex
PCRE (PHP <7.3)
cac vi du ve bat cac chuoi o regex
Submitted by
thieutham
-
8 years ago
2015-08-13 07:24
1
...
74
75
76
77
78
79
80
...
481
Regex to validate date format yyyy/mm/dd | Taha
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Regular Expression
PCRE (PHP <7.3)
/
^
(
19
[
5
-
9
]
[
0
-
9
]
|
20
[
0
-
4
]
[
0
-
9
]
|
2050
)
[
-
\/
]
(
0
?
[
1
-
9
]
|
1
[
0
-
2
]
)
[
-
\/
]
(
0
?
[
1
-
9
]
|
[
12
]
[
0
-
9
]
|
3
[
01
]
)
$
/
gm
Open regex in editor
Description
Loading markdown...
Submitted by
Taha Bhutta
-
7 years ago
2016-08-31 17:28