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 13,020 community submitted regex patterns...
0
Find the JSON in invalid string
PCRE (PHP <7.3)
http://stackoverflow.com/q/40361407/47672
Submitted by
anonymous
-
8 years ago
0
ADI Actor names
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
0
JAMM Title parse for duration
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
0
Capture Nth number of instances before a pattern
PCRE (PHP <7.3)
Elegant way to capture recurring patterns up to a point.
Submitted by
anonymous
-
8 years ago
0
postscreen
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
0
finding hashtags
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
0
IPv4 search
PCRE (PHP <7.3)
basic ip search
Submitted by
anonymous
-
8 years ago
0
Twitter hashtags
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
0
Extract database name of an PostgreSQL JDBC connection url
PCRE (PHP <7.3)
Extracts the database name of an PostgreSQL JDBC connection url
Submitted by
anonymous
-
8 years ago
0
Find Youtube ID from link, url or Youtube embed code
PCRE (PHP <7.3)
Find Youtube ID from link, url or Youtube embed code
Submitted by
onigetoc
-
8 years ago
0
us telephone
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
0
sort
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
0
sort 2
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
0
phone
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
0
Look first character that are special chracters
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
0
username validator
PCRE (PHP <7.3)
^[a-zA-Z]{1}[a-zA-z0-9]{1,15}$ Test input : nikhil11 (valid) 11nikhil (invalid)
Submitted by
anonymous
-
8 years ago
0
Chat bot command multiple params
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
0
Email
ECMAScript (JavaScript)
Regex to validate and get info from email string
Submitted by
anonymous
-
8 years ago
0
raspored
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
0
^Cyrillic
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
1
...
6
7
8
9
10
...
651
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