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
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 7.0 (C#)
Rust
Sponsors
There are currently no sponsors.
Become a sponsor today!
Community Patterns
Search among 14,920 community submitted regex patterns...
4
DNS hostname well-formedness validation
PCRE (PHP <7.3)
Validates that a DNS hostname is well-formed only. You will still need to check that the overall length of the hostname, including the implied trailing "." (if not present), does not exceed 255 bytes.
Submitted by
Jeff Walter
-
8 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
-
8 years ago
4
UK Postcode
ECMAScript (JavaScript)
no description available
Submitted by
msyed
-
8 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
-
8 years ago
4
Validates argentinian postal code
PCRE (PHP <7.3)
Validates the two valid postal codes in Argentina
Submitted by
Agustín Bouillet
-
8 years ago
4
,(?=([^\"]*\"[^\"]*\")*(?![^\"]*\"))
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 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
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
-
4 years ago
4
among us references
ECMAScript (JavaScript)
it detects among us references among us aming us mongus amogus sus...
Submitted by
h
-
3 years ago
(Last modified 3 years ago)
12
Username with "_" "-"
ECMAScript (JavaScript)
no description available
Submitted by
Gianvy
-
9 years ago
8
RFC 3987 compliant URL regex
ECMAScript (JavaScript)
This is a JavaScript port of the URL regex from http://stackoverflow.com/a/190405/384062 that includes a bug fix and some optimization. Mathias Bynens's Regenerate was used to convert unicode escapes. Bug fix: Eliminated stray | falsely allowing querystring to contain | ...
Submitted by
Hans Meyer
-
9 years ago
26
match valid JSON
PCRE (PHP <7.3)
Matches any valid JSON object, matches recursively. Passes all JSON test cases I found.
Submitted by
Mateon1
-
10 years ago
9
Removing an XML Nodes namespace prefix from a XML string wit
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
11 years ago
10
Strip Email ID from Name
PCRE (PHP <7.3)
Use this regex to select all characters up to the "" bracket. It works across multiple lines. You can get an email list with only the IDs. This is the pattern it matches: Alpha Person Step 1 (.*) [$ Step 2 [$.$] (.*) gives you aperson@whatever.org...
Submitted by
Jonathan Davidar
-
10 years ago
31
Email address (most used)
ECMAScript (JavaScript)
Email address, most used cases
Submitted by
Jago
-
9 years ago
7
rsyslog test
PCRE (PHP <7.3)
global modifier
Submitted by
dtmland
-
9 years ago
7
Any positive integer except zero
PCRE (PHP <7.3)
no description available
Submitted by
Harsh
-
9 years ago
7
Date and time format - ISO 8601
ECMAScript (JavaScript)
Matches ISO 8601 date formats
Submitted by
Ettienne
-
8 years ago
1
...
4
5
6
7
8
...
746
UK Postcode
4
Regular Expression
ECMAScript (JavaScript)
/
^
(
[
Gg
]
[
Ii
]
[
Rr
]
[
]
0
[
Aa
]
{2}
)
|
(
[
a
-
zA
-
Z
]
){1}
(
[
0
-
9
]
[
0
-
9
]
|
[
0
-
9
]
|
[
a
-
zA
-
Z
]
[
0
-
9
]
[
a
-
zA
-
Z
]
|
[
a
-
zA
-
Z
]
[
0
-
9
]
[
0
-
9
]
|
[
a
-
zA
-
Z
]
[
0
-
9
]
){1}
(
\s
?
)
(
[
0
-
9
]
[
a
-
zA
-
z
]
[
a
-
zA
-
z
]
){1}
$
/
i
Open regex in editor
Description
no description available
Submitted by
msyed
-
8 years ago