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 17,500 community submitted regex patterns...
1
Parse drupal version info from filename
PCRE (PHP <7.3)
no description available
Submitted by
Jason Smith
-
10 years ago
0
php comment
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
1
ArcSight Administrator
PCRE (PHP <7.3)
It's to activate when storage space reaches 75% capacity
Submitted by
Michal Starr
-
10 years ago
0
waypoints
Python
Text fields describing a name and positions
Submitted by
bruno.piguet@meteo.fr
-
10 years ago
1
Inside single quotes, escape aware
PCRE (PHP <7.3)
Allows the single quote to be escaped, handles the \\' situation
Submitted by
Robin
-
10 years ago
1
Grab double or single quoted text, escape aware
PCRE (PHP <7.3)
^$ are only added for the test cases, handles escapes and the closing \\" situation
Submitted by
robin
-
10 years ago
1
background:url
PCRE (PHP <7.3)
no description available
Submitted by
Mitus M.
-
10 years ago
0
background:url
PCRE (PHP <7.3)
no description available
Submitted by
Mitus M.
-
10 years ago
0
background:url
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
0
In a pipe separed list of values check for a concrete one
PCRE (PHP <7.3)
no description available
Submitted by
furbypaloma
-
10 years ago
1
gk
PCRE (PHP <7.3)
wertyuikjh
Submitted by
hjk
-
10 years ago
1
dsf
ECMAScript (JavaScript)
no description available
Submitted by
fdsfdsfdsf
-
10 years ago
1
get all title value && all the text in <a/>
PCRE (PHP <7.3)
no description available
Submitted by
Kerosene
-
10 years ago
1
myregex
PCRE (PHP <7.3)
no description available
Submitted by
shakti
-
10 years ago
1
Check fr date format
PCRE (PHP <7.3)
no description available
Submitted by
Kerosene
-
10 years ago
0
salanki
PCRE (PHP <7.3)
no description available
Submitted by
salanki
-
10 years ago
1
Regex: Parse LinkHeader ('Link' header)
PCRE (PHP <7.3)
A regular expression to parse a HTML 'Link' header.
Submitted by
James Furey
-
10 years ago
-2
Why doesn't it stop at the period?
PCRE (PHP <7.3)
try to match just the name from this: Copyright © 2005 Candy Arrington. Used by permission. All rights reserved.
Submitted by
anonymous
-
10 years ago
-3
hjghj
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
-3
cake
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
1
...
75
76
77
78
79
...
875
Credit Card finder
1
Regular Expression
PCRE (PHP <7.3)
/
(
3
[
47
]
[
0
-
9
]
{13}
|
3
(?:
0
[
0
-
5
]
|
[
68
]
[
0
-
9
]
)
[
0
-
9
]
{11}
|
4
[
0
-
9
]
{12}
(?:
[
0
-
9
]
{3}
)?
|
5
[
1
-
5
]
[
0
-
9
]
{14}
|
6
(?:
011
|
5
[
0
-
9
]
{2}
)
[
0
-
9
]
{12}
|
(?:
2131
|
1800
|
35
\d
{3}
)
\d
{11}
)
/
g
Open regex in editor
Description
Captures credit card looking sequence of digits Luhn validation remains required as a complement.
Submitted by
OP
-
9 years ago