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 17,420 community submitted regex patterns...
4
4 upvotes, 0 downvotes (score 51%) (You must be signed in to vote)
CloudFlare
PCRE2 (PHP >=7.3)
Cloud Flare
Submitted by
anonymous
-
2 years ago
2021-06-29 16:27
4
4 upvotes, 0 downvotes (score 51%) (You must be signed in to vote)
Email
PCRE2 (PHP >=7.3)
email format control
Submitted by
ahmetbarut
-
2 years ago
2021-07-10 13:06
4
4 upvotes, 0 downvotes (score 51%) (You must be signed in to vote)
UK Postcode
ECMAScript (JavaScript)
no description available
Submitted by
msyed
-
8 years ago
2016-04-04 13:37
4
4 upvotes, 0 downvotes (score 51%) (You must be signed in to vote)
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
2016-05-28 13:57
4
4 upvotes, 0 downvotes (score 51%) (You must be signed in to vote)
Validates argentinian postal code
PCRE (PHP <7.3)
Validates the two valid postal codes in Argentina
Submitted by
Agustín Bouillet
-
8 years ago
2016-05-28 14:05
4
4 upvotes, 0 downvotes (score 51%) (You must be signed in to vote)
,(?=([^\"]*\"[^\"]*\")*(?![^\"]*\"))
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2016-05-31 12:17
4
4 upvotes, 0 downvotes (score 51%) (You must be signed in to vote)
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
-
7 years ago
2016-07-03 12:36
4
4 upvotes, 0 downvotes (score 51%) (You must be signed in to vote)
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
-
7 years ago
2016-07-09 21:06
4
4 upvotes, 0 downvotes (score 51%) (You must be signed in to vote)
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
-
7 years ago
2016-07-21 20:52
4
4 upvotes, 0 downvotes (score 51%) (You must be signed in to vote)
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
2020-03-03 01:56
12
23 upvotes, 11 downvotes (score 50.8%) (You must be signed in to vote)
Username with "_" "-"
ECMAScript (JavaScript)
no description available
Submitted by
Gianvy
-
8 years ago
2015-10-16 15:44
26
91 upvotes, 65 downvotes (score 50.5%) (You must be signed in to vote)
match valid JSON
PCRE (PHP <7.3)
Matches any valid JSON object, matches recursively. Passes all JSON test cases I found.
Submitted by
Mateon1
-
9 years ago
2014-11-17 20:47
9
15 upvotes, 6 downvotes (score 50%) (You must be signed in to vote)
Removing an XML Nodes namespace prefix from a XML string wit
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
2013-11-23 16:21
10
18 upvotes, 8 downvotes (score 50%) (You must be signed in to vote)
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
-
9 years ago
2014-11-24 22:41
31
142 upvotes, 111 downvotes (score 50%) (You must be signed in to vote)
Email address (most used)
ECMAScript (JavaScript)
Email address, most used cases
Submitted by
Jago
-
8 years ago
2015-07-01 09:32
7
10 upvotes, 3 downvotes (score 49.7%) (You must be signed in to vote)
rsyslog test
PCRE (PHP <7.3)
global modifier
Submitted by
dtmland
-
9 years ago
2015-03-18 16:42
7
10 upvotes, 3 downvotes (score 49.7%) (You must be signed in to vote)
Any positive integer except zero
PCRE (PHP <7.3)
no description available
Submitted by
Harsh
-
8 years ago
2015-08-27 10:04
7
10 upvotes, 3 downvotes (score 49.7%) (You must be signed in to vote)
Date and time format - ISO 8601
ECMAScript (JavaScript)
Matches ISO 8601 date formats
Submitted by
Ettienne
-
8 years ago
2016-02-03 08:21
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
23
88 upvotes, 65 downvotes (score 49.6%) (You must be signed in to vote)
userName
PCRE (PHP <7.3)
1-15 alphanumeric login name
Submitted by
gsanchezc
-
8 years ago
2015-06-06 08:00
1
...
3
4
5
6
7
8
9
...
871
Remove Special Ascii Characters from unicode String
11
22 upvotes, 11 downvotes (score 49.6%) (You must be signed in to vote)
Regular Expression
PCRE (PHP <7.3)
/
[^
\p{L}\s
._0
-
9
\-
]
+
/
g
Open regex in editor
Description
Loading markdown...
Submitted by
Hummad Hassan
-
9 years ago
2015-03-12 11:00