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
Community Patterns
Search among 13,860 community submitted regex patterns...
1
Simbols
PCRE (PHP <7.3)
remove dublicate punctuation marks and keep punctuation if stay near a word( abc, , ,) last , ,
Submitted by
Suciu Razvan
-
8 years ago
1
Google Category Extraction
PCRE (PHP <7.3)
Extract first term in url path for google category extraction
Submitted by
SCFarmer
-
8 years ago
1
dd
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
1
find latitude longitude
PCRE (PHP <7.3)
find & get long lat in a string
Submitted by
Michael CAILLET http://mica.bike
-
8 years ago
1
Modernest of Emails
PCRE (PHP <7.3)
New gTLDs (2-14 chars) Allows sentence endings after email Accepts every char (except space) = Full Email Support ...
Submitted by
timmyRS
-
8 years ago
1
SIEM Extended Attribute Regex
PCRE (PHP <7.3)
no description available
Submitted by
Stephen Kim
-
8 years ago
1
Lynda Anchors
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
1
Email
PCRE (PHP <7.3)
Refunds email validation
Submitted by
Greg Kedge
-
8 years ago
1
Your BANK a/c xxxx 4114 will be debited for Rs 97856.5 towards HDFCBan
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
1
No Double space and special character, no leading space ISO-8859-1
PCRE (PHP <7.3)
Matches everything exept a String with one of the following: Leading or ending space multiple spaces double special character
Submitted by
Hunziger
-
8 years ago
1
Full URL
PCRE (PHP <7.3)
IPs Domains Ports Directories Files ...
Submitted by
timmyRS
-
8 years ago
1
xref phone number
Python
no description available
Submitted by
anonymous
-
8 years ago
1
Save
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
1
re
Python
no description available
Submitted by
anonymous
-
8 years ago
1
HTML tag search
Python
finds the common html tags
Submitted by
Henri Mulder
-
8 years ago
1
ADCE - ValidaciĆ³n
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
1
ADCE DescomposiciĆ³n
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
1
smiley
PCRE (PHP <7.3)
no description available
Submitted by
FallenShard
-
8 years ago
1
multiple upstream time
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
0
dash then anything
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
1
...
516
517
518
519
520
...
693
Validate credit card numbers
-2
Regular Expression
PCRE (PHP <7.3)
/
^
(?:
4
[
0
-
9
]
{12}
(?:
[
0
-
9
]
{3}
)?
|
5
[
1
-
5
]
[
0
-
9
]
{14}
|
3
[
47
]
[
0
-
9
]
{13}
|
3
(?:
0
[
0
-
5
]
|
[
68
]
[
0
-
9
]
)
[
0
-
9
]
{11}
|
6
(?:
011
|
5
[
0
-
9
]
{2}
)
[
0
-
9
]
{12}
|
(?:
2131
|
1800
|
35
\d
{3}
)
\d
{11}
)
$
/
Open regex in editor
Description
Visa, MasterCard, American Express, Diners Club, Discover, JCB
Submitted by
www.regular-expressions.info/creditcard.html
-
9 years ago