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 3,800 community submitted regex patterns...
1
Decimal number
ECMAScript (JavaScript)
Matches any decimal number. Supports positive/negative sign, thousands separators, and implicit zeros.
Submitted by
XeNoX (D:T0M11#1774, G/XNX11, i@xenox_officiel, T@XeNoXoff)
-
2 years ago
1
Unformatted Decimal number
ECMAScript (JavaScript)
Matches any mathematically correct decimal number which is not formatted.
Submitted by
XeNoX (D:T0M11#1774, G/XNX11, i@xenox_officiel, T@XeNoXoff)
-
2 years ago
1
Unformatted Dozenal number
ECMAScript (JavaScript)
Matches any mathematically correct dozenal number which is not formatted.
Submitted by
XeNoX (D:T0M11#1774, G/XNX11, i@xenox_officiel, T@XeNoXoff)
-
2 years ago
1
Dozenal number
ECMAScript (JavaScript)
Matches any dozenal number. Supports positive/negative sign, thousands separators, and implicit zeros.
Submitted by
XeNoX (D:T0M11#1774, G/XNX11, i@xenox_officiel, T@XeNoXoff)
-
2 years ago
1
Dozenal number (Restricted)
ECMAScript (JavaScript)
Matches dozenal numbers. Supports positive/negative sign and thousands separators.
Submitted by
XeNoX (D:T0M11#1774, G/XNX11, i@xenox_officiel, T@XeNoXoff)
-
2 years ago
1
Decimal number (Restricted)
ECMAScript (JavaScript)
Matches decimal numbers. Supports positive/negative sign and thousands separators.
Submitted by
XeNoX (D:T0M11#1774, G/XNX11, i@xenox_officiel, T@XeNoXoff)
-
2 years ago
1
1
Golang
11
Submitted by
anonymous
-
2 years ago
1
ISBN-10
ECMAScript (JavaScript)
Regex that matches the old ISBN-10 format and captures all relevant groups. It does not verify that the ISBN is valid though. The format specification is based on the following website: https://isbn-information.com/the-10-digit-isbn.html and the International ISBN Agency user's manual.
Submitted by
Alejandro
-
2 years ago
1
ISBN-13
ECMAScript (JavaScript)
Regex that matches the new (as of 2007) ISBN-13 format and captures all relevant groups. It does not verify that the ISBN is valid though. The format specification is based on the following website: https://isbn-information.com/the-13-digit-isbn.html and the International ISBN Agency user's manual.
Submitted by
Alejandro
-
2 years ago
1
11位整数含两位小数校验
ECMAScript (JavaScript)
100.00 10000.00 过滤非 0 开头两位小数
Submitted by
yang
-
2 years ago
1
中文匹配
ECMAScript (JavaScript)
本示例启用了多行匹配 m
Submitted by
yang
-
2 years ago
1
phone number middle number parsing
Java 8
middle number parsing regex
Submitted by
anonymous
-
2 years ago
1
js获取url上的参数
ECMAScript (JavaScript)
/(+)=(+)/gm
Submitted by
anonymous
-
2 years ago
1
Find duplicate char in a string
ECMAScript (JavaScript)
it was used in this codewar challenge. and i find i really interesting. Also u can Write it like this if you want /(.)\1+/g it works exactly the same
Submitted by
anonymous
-
2 years ago
1
RegEX IBAN SEPA with spaces
ECMAScript (JavaScript)
RegEX IBAN SEPA with spaces
Submitted by
Karim MB
-
2 years ago
1
Percentage regex
ECMAScript (JavaScript)
Percentage regex allows integer and float values e.g. 10 // valid 12 // valid 12.34 // valid 12.345 // invalid 99.99 // valid...
Submitted by
Ankit Patel
-
2 years ago
1
Regex for url
ECMAScript (JavaScript)
Regex for url
Submitted by
anonymous
-
2 years ago
(Last modified 2 years ago)
0
Base64 Image Data URI finder
ECMAScript (JavaScript)
The expression is intended for finding one or more embedded Base64 Data URI in an HTML document. It will not find matches for any HTML surrounding the encoded Data URI match ( tag or src attributes), just the encoded data and MIME header, all that's needed to decode. The MIME type is for images in ...
Submitted by
Attention Deficit Hyperactivity Disorder
-
2 years ago
(Last modified 2 years ago)
1
AsciiDoc delimited block example
Java 8
https://docs.asciidoctor.org/asciidoc/latest/blocks/delimited/
Submitted by
aisbergde
-
2 years ago
(Last modified 2 years ago)
1
Match binary calculator, Operands and Operator
ECMAScript (JavaScript)
Match binary number (0 | 1), with or not Operand (+ | - | / | *)
Submitted by
chuaschinai
-
2 years ago
1
...
74
75
76
77
78
...
190
IP/MASK or IP/CIDR (accept 5.5.5.0/255.255.255.0 and 5.5.5.0/24)
0
Regular Expression
ECMAScript (JavaScript)
/
^
(
25
[
0
-
5
]
|
2
[
0
-
4
]
[
0
-
9
]
|
[
01
]
?
[
0
-
9
]
[
0
-
9
]
?
)
\.
(
25
[
0
-
5
]
|
2
[
0
-
4
]
[
0
-
9
]
|
[
01
]
?
[
0
-
9
]
[
0
-
9
]
?
)
\.
(
25
[
0
-
5
]
|
2
[
0
-
4
]
[
0
-
9
]
|
[
01
]
?
[
0
-
9
]
[
0
-
9
]
?
)
\.
(
25
[
0
-
5
]
|
2
[
0
-
4
]
[
0
-
9
]
|
[
01
]
?
[
0
-
9
]
[
0
-
9
]
?
)
\/
(
(
(
((
[
0
-
9
]
)|
(?:
[
1
-
2
]
[
0
-
9
]
)|
(?:
3
[
0
-
2
]
))
|
((
[
1
-
9
]
?
\\
d
|
1
\\
d
\\
d
|
25
[
0
-
5
]
|
2
[
0
-
4
]
\\
d
)
\.
){3}
(
[
1
-
9
]
?
\\
d
|
1
\\
d
\\
d
|
25
[
0
-
5
]
|
2
[
0
-
4
]
\\
d
)
((
[
0
-
9
]
|
[
1
-
9
]
[
0
-
9
]
|
1
[
0
-
9
]
{2}
|
2
[
0
-
4
]
[
0
-
9
]
|
25
[
0
-
5
]
)
\.
){3}
(
[
0
-
9
]
|
[
1
-
9
]
[
0
-
9
]
|
1
[
0
-
9
]
{2}
|
2
[
0
-
4
]
[
0
-
9
]
|
25
[
0
-
5
]
)
)
)
|
(
(
(
255
\.
){3}
(
255
|
254
|
252
|
248
|
240
|
224
|
192
|
128
|
0
+
)
)
|
(
(
255
\.
){2}
(
255
|
254
|
252
|
248
|
240
|
224
|
192
|
128
|
0
+
)
\.
0
)
|
(
(
255
\.
)
(
255
|
254
|
252
|
248
|
240
|
224
|
192
|
128
|
0
+
)
(
\.
0
+
){2}
)
|
(
(
255
|
254
|
252
|
248
|
240
|
224
|
192
|
128
|
0
+
)
(
\.
0
+
){3}
)
)
)
$
/
mg
Open regex in editor
Description
IP/MASK or IP/CIDR (accept 5.5.5.0/255.255.255.0 and 5.5.5.0/24)
Submitted by
anonymous
-
5 years ago