Please enable JavaScript to use this web application.
Regular
Expressions
101
Social
Donate
Info
Regex Editor
Community Patterns
Account
Regex Quiz
Settings
Order By
Most Recent
Most upvotes
Most downvotes
Highest Score
Lowest Score
Filter by Flavor
PCRE2 (PHP >=7.3)
PCRE (PHP <7.3)
ECMAScript (JavaScript)
Python
Golang
Java 8
.NET 7.0 (C#)
Rust
Sponsors
There are currently no sponsors.
Become a sponsor today!
Community Patterns
Search among 18,040 community submitted regex patterns...
2
Remove script tags from code
PCRE (PHP <7.3)
Regular expression to remove only the tags from the code. The regular expression only removes the tags, not the JS code inside the tag.
Submitted by
IvenMS
-
9 years ago
4
MasterCard validate 2017
PCRE (PHP <7.3)
Match a MasterCard with new range for 2017: 51-55 and 2221-2720 @incarnated
Submitted by
John C
-
9 years ago
2
Parse gMail: Get name and email addresses
ECMAScript (JavaScript)
get names and email address seperated out from comma seperated string received from gMail api
Submitted by
anonymous
-
9 years ago
4
UK Postcode
ECMAScript (JavaScript)
no description available
Submitted by
msyed
-
9 years ago
3
french phone number + match right part
PCRE (PHP <7.3)
Matches french numbers (not special numbers like 115, 18). First matching group contains the right part without prefix (0, +33, 33, 033, or 0033).
Submitted by
xdrm-brackets
-
9 years ago
2
Select first letter of words
PCRE (PHP <7.3)
Selects first letter of space separted word with exceptions. This allows bypassing 's and such. Forcing separating charter can be set at [\s&\/] $1: separating part...
Submitted by
anonymous
-
9 years ago
3
JSON recognition
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
4
Validate Argentinian postal code
PCRE (PHP <7.3)
Validates CPA (Código Postal Argentino, spanish for Argentinian Postal Code).
Submitted by
Agustín Bouillet
-
9 years ago
4
Validates argentinian postal code
PCRE (PHP <7.3)
Validates the two valid postal codes in Argentina
Submitted by
Agustín Bouillet
-
9 years ago
4
,(?=([^\"]*\"[^\"]*\")*(?![^\"]*\"))
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
4
remove blank keys in query string
PCRE (PHP <7.3)
looks for blank keys in the query string and remove it, in order to make shorter request.
Submitted by
M.Nizam
-
8 years ago
4
Credit Card Validation - MasterCard, Visa, Amex, Discover
PCRE (PHP <7.3)
MasterCard - ^5[1-5]\d+ Visa - ^4\d+ Amex - ^3[47]\d+ Discover - 6011|65|64...
Submitted by
Eric Foster
-
8 years ago
4
Campos Decimais (pt_br)
ECMAScript (JavaScript)
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
-
8 years ago
3
strong password validation
PCRE (PHP <7.3)
This regex matches only when all the following are true: password has minimum 2 uppercase letters password has minimum 2 lowercase letters password has minimum 2 numerals (0-9) password has minimum 2 special characters, of the group !@#$%^&*()-_=+{};:, password has no more than 2 consecutive identic...
Submitted by
anonymous
-
7 years ago
4
INI Parser
PCRE (PHP <7.3)
Created for purpose of reading an INI file in C# applications. Supports comments and comment escape characters. I plan to add more escape characters (such as \=). s - Section scp - Section Comment Prefix sc - Section Comment...
Submitted by
Raxdiam
-
5 years ago
4
CloudFlare
PCRE2 (PHP >=7.3)
Cloud Flare
Submitted by
anonymous
-
3 years ago
4
Email
PCRE2 (PHP >=7.3)
email format control
Submitted by
ahmetbarut
-
3 years ago
4
C# Regex Extract/Match Nested HTML Elements/Tags
.NET 7.0 (C#)
With this C# regex, you can easily match/Parse Nested HTML tags. Example input: ...
Submitted by
w4po
-
3 years ago
(Last modified a year ago)
3
YouTubeVideoUrl
ECMAScript (JavaScript)
YouTubeVideoUrl
Submitted by
EdwardKonovalov
-
2 years ago
(Last modified 2 years ago)
2
js function test
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
12 years ago
1
...
21
22
23
24
25
...
902
Community Library Entry
3
Regular Expression
ECMAScript (JavaScript)
/
^\d
{2}
\/
\d
{2}
\/
\d
{4}
$
/
gm
Open regex in editor
Description
no description available
Submitted by
jay johnson
-
11 years ago