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 12,620 community submitted regex patterns...
0
parse chemical formula
ECMAScript (JavaScript)
formulacharge)
Submitted by
anonymous
-
2 years ago
0
single line possibly comma delimited list and end of list
ECMAScript (JavaScript)
for react props
Submitted by
Zach Hardesty
-
2 years ago
0
Mobile Phone Number with code
ECMAScript (JavaScript)
Admite un numero de telefono con su codigo de area
Submitted by
macorreag
-
2 years ago
0
assoc_ff_solucao
PCRE (PHP <7.3)
identifies ff in assoc
Submitted by
anonymous
-
2 years ago
0
English/Hebrew Text (no numbers)
ECMAScript (JavaScript)
Detects English & Hebrew text, but no numbers. Number detection could easily be added, as well as many other configurations. The main point here is that \p{Hebrew} is a very pretty way to include Hebrew characters.
Submitted by
MegaSpaceHamlet
-
2 years ago
0
Parse number and street from street address
ECMAScript (JavaScript)
Uses ECMAScript to parse the number and street from a street address.
Submitted by
Wiktor Stribiżew
-
2 years ago
0
Strip Azure Devops merge commit for fit changelog
PCRE (PHP <7.3)
Using the right headerPattern that can correctly parse either the merge message or the commit message I was able to workaround the issue
Submitted by
anonymous
-
2 years ago
0
Godot REPL Plugin - (String Literal) Load Expression
ECMAScript (JavaScript)
Loose matching of load statements, capturing the path parameter in the path capture group. load('./scene.tscn') load('path/to/resource.tres') load("path/to/file.gd") `
Submitted by
disk0__
-
2 years ago
0
instagram regex url get shortcode all type url
PCRE (PHP <7.3)
Get shortcode from all type instagram url group 1 for username group 2 for p group 3 for reel group 4 for tv...
Submitted by
anubiskun
-
2 years ago
0
css filter property
ECMAScript (JavaScript)
Extracting functions from filter css property https://developer.mozilla.org/en-US/docs/Web/CSS/filter
Submitted by
Roko
-
2 years ago
0
Cloudwatch Insights ENI Flow Logs
ECMAScript (JavaScript)
This will pull out the source, destination IP addresses and the destination port from a default ENI flow log entry.
Submitted by
Abram Flansburg
-
2 years ago
(Last modified 2 years ago)
0
regex-symbols
ECMAScript (JavaScript)
Regex symbols emoji
Submitted by
Thaile
-
2 years ago
0
千分位分隔符
ECMAScript (JavaScript)
千分位的分隔符
Submitted by
anonymous
-
2 years ago
0
Match Strings itself
PCRE (PHP <7.3)
Match Strings itself, include ""
Submitted by
picc_lu
-
2 years ago
0
match first lowercase letter of every word
ECMAScript (JavaScript)
match first lowercase letter of every word
Submitted by
anonymous
-
2 years ago
(Last modified 2 years ago)
0
XML Parsing for IE<9
ECMAScript (JavaScript)
All my marbles are gone.
Submitted by
Odd Stråbø
-
2 years ago
(Last modified 2 years ago)
0
Regex101
ECMAScript (JavaScript)
To submit my account
Submitted by
anonymous
-
2 years ago
0
Inserting *
ECMAScript (JavaScript)
REGEX from Formal Lang for inserting * from implicit multiplication
Submitted by
anonymous
-
2 years ago
0
camelCase Matches
PCRE (PHP <7.3)
camelCase Matches
Submitted by
anonymous
-
2 years ago
0
camelCase Matches
PCRE (PHP <7.3)
camelCase Matches
Submitted by
anonymous
-
2 years ago
1
...
605
606
607
608
609
...
631
MasterCard validate 2017
4
Regular Expression
PCRE (PHP <7.3)
/
(
^
5
[
1
-
5
]
[
0
-
9
]
{14}
$
)
|
(
^
2221
[
0
-
9
]
{12}
$
)
|
(
^
222
[
2
-
9
]
[
0
-
9
]
{12}
$
)
|
(
^
22
[
3
-
9
]
[
0
-
9
]
{13}
$
)
|
(
^
2
[
3
-
6
]
[
0
-
9
]
{14}
$
)
|
(
^
2720
[
0
-
9
]
{12}
$
)
|
(
^
27
[
0
-
1
]
[
0
-
9
]
{13}
$
)
/
gm
Open regex in editor
Description
Match a MasterCard with new range for 2017: 51-55 and 2221-2720
@incarnated
Submitted by
John C
-
8 years ago