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 11,660 community submitted regex patterns...
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)
sdf
PCRE (PHP <7.3)
f
Submitted by
f
-
8 years ago
2015-08-10 15:55
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
secure http header: cache-control
PCRE (PHP <7.3)
Check if HTTP Header of Cache-Control has all nessery values for highest security
Submitted by
Nils Werner
-
8 years ago
2015-08-10 12:36
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)
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)
Timestamp from json
PCRE (PHP <7.3)
no description available
Submitted by
Thomas Khalil
-
8 years ago
2015-08-09 22:56
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
parse velocity variables
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-08-09 09:32
1
3 upvotes, 2 downvotes (score 23.1%) (You must be signed in to vote)
Does not match
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-08-07 18:27
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)
Regexp for mediawiki
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-08-07 16:02
5
7 upvotes, 2 downvotes (score 45.3%) (You must be signed in to vote)
Latitude,Longitude fetcher
PCRE (PHP <7.3)
Useful to work with GoogleMap API.
Submitted by
anonymous
-
8 years ago
2015-08-07 08:25
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
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Valmaks_rename_big_strings
PCRE (PHP <7.3)
no description available
Submitted by
witamin
-
8 years ago
2015-08-06 16:09
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)
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
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
Valmaks_name_replace_222
PCRE (PHP <7.3)
no description available
Submitted by
witamin
-
8 years ago
2015-08-06 10:35
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)
URL supporting ports, GET params and js routing
PCRE (PHP <7.3)
(http(s)?:\/\/) // http:// or https:// (([a-zA-Z0-9_\-])+(\.([a-zA-Z0-9_\-])+)+(:[1-9]+[0]*)?)(\/?| // basic url f.e. www.wp.pl with obligatory / at end ...
Submitted by
Rafał Rowiński
-
8 years ago
2015-08-05 18:25
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
http
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-08-05 17:39
1
2 upvotes, 1 downvotes (score 20.8%) (You must be signed in to vote)
Match a string that is equal to a string before a '='
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-08-05 16:24
1
...
526
527
528
529
530
531
532
...
583
email check
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Regular Expression
PCRE (PHP <7.3)
/
^
[
a
-
zA
-
Z0
-
9
]
(?:
[
\.
_-
]
(?=
[
a
-
zA
-
Z0
-
9
]
)
|
[
a
-
zA
-
Z0
-
9
]
)+
@
(?:
[
\.
_-
]
(?=
[
a
-
zA
-
Z0
-
9
]
)
|
[
a
-
zA
-
Z0
-
9
]
)+
(?:
[
a
-
z
]
{2,4}
|
com
|
ru
|
by
)
$
/
i
Open regex in editor
Description
Loading markdown...
Submitted by
harimambura
-
8 years ago
2015-06-22 17:54