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 5,540 community submitted regex patterns...
0
Bot-Studio Comments
Python
Regex For Comments In Bot Studio Via YT Docs
Submitted by
Codaea
-
2 years ago
0
RFC 4646
ECMAScript (JavaScript)
Matches RFC 4646 see https://www.rfc-editor.org/rfc/rfc4646.txt
Submitted by
reThink23
-
2 years ago
0
Minecraft Username
ECMAScript (JavaScript)
Regex that matches only valid Minecraft usernames
Submitted by
demented
-
2 years ago
(Last modified 2 years ago)
0
Author names
Python
Matches author names
Submitted by
anonymous
-
2 years ago
0
url matcher
ECMAScript (JavaScript)
improvement of the regular expression seen in this meme: https://old.reddit.com/r/ProgrammerHumor/comments/vxhbku/a_regex_god/
Submitted by
Mitsunee
-
2 years ago
0
Minecraft Command Getter
ECMAScript (JavaScript)
A "detector" thing
Submitted by
MeowcaTheoRange
-
2 years ago
0
IP (v4 and v6) check
ECMAScript (JavaScript)
This regexp match an ip address in v6 or v4 form. Included V6 compact form (:: in place of :0000:). Doesn't matches addresses range or mixed format (like y:y:y:y:y:y:x.x.x.x)
Submitted by
Emanuele Benedetti
-
2 years ago
(Last modified 2 years ago)
0
test
ECMAScript (JavaScript)
o
Submitted by
k
-
2 years ago
0
test
ECMAScript (JavaScript)
test
Submitted by
anonymous
-
2 years ago
(Last modified 2 years ago)
0
infinitivo verbos idênticos
ECMAScript (JavaScript)
infinitivo
Submitted by
anonymous
-
2 years ago
0
TRye bracktres
Python
gfhtrgh
Submitted by
anonymous
-
2 years ago
0
telephone_finder
Python
[-+ ]?[178]?[ ]?\d[ ]?\d[ ]?\d[ ]?\d[ ]?\d[ ]?\d[ ]?
Submitted by
anonymous
-
2 years ago
0
Echo
ECMAScript (JavaScript)
Usage of named capture group.
Submitted by
Abitwhy
-
2 years ago
(Last modified 2 years ago)
0
Bandwidth value validation
Python
Bandwidth value validation: 1-1023K 1-1023M 1-40G
Submitted by
Damien Stuart
-
2 years ago
0
Email validation regex
Python
This email validation regex works perfectly (99.99%) for validating email address entries. The regex does not match email addresses with with the following characteristics: Addresses that begin/end with a special character Addresses with consecutive repeated special characters ...
Submitted by
Bright Owusu
-
2 years ago
(Last modified 2 years ago)
0
regexGetAccount
ECMAScript (JavaScript)
(Element CI: )\d{4}
Submitted by
raphael
-
2 years ago
0
num pattern
ECMAScript (JavaScript)
a
Submitted by
Ibraheem
-
2 years ago
0
a
ECMAScript (JavaScript)
不得輸入0、空值、符號、負數(僅限溫度)、小數點(僅支援後2位)
Submitted by
anonymous
-
2 years ago
0
IBAN SEPA
ECMAScript (JavaScript)
This regex check for valid IBANS with SEPA only. Country definition https://www.iban.de/iban-laenderliste.html
Submitted by
Florian Bischof
-
2 years ago
0
Out of
Python
Out of
Submitted by
anonymous
-
2 years ago
1
...
252
253
254
255
256
...
277
Community Library Entry
-1
Regular Expression
ECMAScript (JavaScript)
/
(?<=
(?:
^
|
[^
\\
]
)
(?:
\\\\
)*
)
(
(
[
`'"
]
)
(
.
*
?
(?:
[^
\\
]
(
\\\\
)*
|
$
)
(
\2
|
$
)
)
)
/
g
Open regex in editor
Description
匹配带引号内容,被引号包含的内容
结构(
$x
)
((前引号)(内容)(后引号))
整体内容(包含引号)
前引号
内容
后引号
默认匹配
[`'"]
引号,可以在表达式的匹配2中更改
消除转义字符对 引号的影响
单个有效引号会直接匹配至末尾,若不想匹配至末尾可以移除表达式尾部的
$
Submitted by
诶!你的尾巴掉了
-
a year ago
(Last modified a year ago)