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
Most upvotes
Most downvotes
Highest Score
Lowest Score
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 18,040 community submitted regex patterns...
1
Email validation
PCRE (PHP <7.3)
because everything else is too strict
Submitted by
anonymous
-
10 years ago
1
Stackexchange: Create date variable from time
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
1
rvewr
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
3
URL with matching categories
PCRE (PHP <7.3)
Finds the protocol, subdomain, ((domain, extension)/ipaddress), port, filepath (split in path and filename), the route and the query string.
Submitted by
fps
-
10 years ago
1
match any email address in list
PCRE (PHP <7.3)
no description available
Submitted by
cloneman
-
10 years ago
2
html font to bbcode
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
10 years ago
1
Match mydomain*.mydomain.com
PCRE (PHP <7.3)
no description available
Submitted by
Trappist
-
10 years ago
1
Пошук Ñмайлів
PCRE (PHP <7.3)
ПроÑтенька демонÑÑ‚Ñ€Ð°Ñ†Ñ–Ñ Ð¿Ð¾ÑˆÑƒÐºÑƒ Ñмайлів за допомогою регулÑрних виразів
Submitted by
КоÑÑ‚Ñ Ð¢Ñ€ÐµÑ‚Ñк
-
10 years ago
1
big apple is fool
ECMAScript (JavaScript)
no description available
Submitted by
litianzhao
-
10 years ago
1
Ja som's regex
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
27
Parsing browser User Agents
PCRE (PHP <7.3)
From a (fairly large) list of User Agent strings, extract the OS, Browser, and Device Type.
Submitted by
OnlineCop
-
10 years ago
(Last modified a year ago)
-1
text beetween text
Python
no description available
Submitted by
karol
-
10 years ago
1
Extract elevation from GPX
PCRE (PHP <7.3)
Matches everything except content between and
Submitted by
ViteXikora
-
10 years ago
4
AMEX, VISA, MASTERCARD, and DISCOVER REGEX
PCRE (PHP <7.3)
First pass at a way to find credit card data using regex.
Submitted by
David Maislin
-
10 years ago
1
Currency amount without currency symbol
PCRE (PHP <7.3)
Matching numbers related to financial amounts. Does not consider the type of currency. Will not match: 34 1.005 33,00...
Submitted by
elgehelge
-
10 years ago
2
Currency amount without currency symbol
PCRE (PHP <7.3)
Matches numbers that are likely to by financial amount. Does not consider the type of currency.
Submitted by
elgehelge
-
10 years ago
3
Alternative Capture Country Codes
PCRE (PHP <7.3)
no description available
Submitted by
Branden
-
10 years ago
1
Google plus post regex
PCRE (PHP <7.3)
Retrieve username or user id and post id, example urls: https://apis.google.com/u/0/wm/1/118176280023244994777/posts/4q6esduuinn https://plus.google.com/+Username/posts/4q6ezduuinn https://plus.google.com/118176280323144994777/posts/4q6ezduuinn
Submitted by
Misthero
-
10 years ago
1
Alternatvie Country Code Capture
Python
no description available
Submitted by
Branden
-
10 years ago
-1
Alternative With Capture Groups
Python
Capture alternative items matching end of lines country codes
Submitted by
Branden
-
10 years ago
1
...
863
864
865
866
867
...
902
Community Library Entry
0
Regular Expression
PCRE2 (PHP >=7.3)
/
(?<ssn>
(?<!
\d
{1}
)
\d
{3}
[
\s
-
]
+
\d
{2}
[
\s
-
]
+
\d
{4}
(?!
\d
{1}
)
|
(?<!
\d
{1}
)
\d
{9}
(?!
\d
{1}
)
)
|
(?<creditCard>
(?<!
[
0
-
9
]
{1}
)
(?:
4
[
0
-
9
]
{12}
(?:
[
0
-
9
]
{3}
)?
|
\d
{4}
[
\s
-
]
+
\d
{4}
[
\s
-
]
+
\d
{4}
[
\s
-
]
+
\d
{4}
|
\d
{4}
\d
{4}
\d
{4}
\d
{4}
|
(?:
5
[
1
-
5
]
[
0
-
9
]
{2}
|
222
[
1
-
9
]
|
22
[
3
-
9
]
[
0
-
9
]
|
2
[
3
-
6
]
[
0
-
9
]
{2}
|
27
[
01
]
[
0
-
9
]
|
2720
)
[
0
-
9
]
{12}
|
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}
)
(?!
[
0
-
9
]
{1}
)
)
/
gm
Open regex in editor
Description
Regex code that can be used to group for credit card and social security number.
Submitted by
Abdullah Dalgic
-
2 years ago
(Last modified 2 years ago)