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 3,560 community submitted regex patterns...
0
hsl colors
ECMAScript (JavaScript)
matches many HSL and HSLA formats permitted in CSS
Submitted by
anonymous
-
2 years ago
0
gsap current price
ECMAScript (JavaScript)
Getting google shopping current pricees
Submitted by
anonymous
-
2 years ago
0
Trimmed (no unicode space separators at start or end of string
ECMAScript (JavaScript)
Disallows all space-like characters -- see https://www.fileformat.info/info/unicode/category/Zs/list.htm -- at the start or end of the string
Submitted by
anonymous
-
2 years ago
0
Match Discord Emoji
ECMAScript (JavaScript)
This matches all type of emoji which can be used on Discord.
Submitted by
cph101
-
2 years ago
-1
Matching un-wrapped HTML & CSS code blocks in Markdown
ECMAScript (JavaScript)
PATTERNS RegEx Flavour ECMAScript (JavaScript, ActionScript, TypeScript, etc.) ...
Submitted by
anonymous
-
2 years ago
0
0及最多6位正负整数
ECMAScript (JavaScript)
1、匹配6位以内正负整数 2、可以匹配0 有效例子 0 21...
Submitted by
anonymous
-
2 years ago
0
test
ECMAScript (JavaScript)
test
Submitted by
anonymous
-
2 years ago
0
capture strings between starts and ends line
ECMAScript (JavaScript)
capture any strings between starts and ends line
Submitted by
anonymous
-
2 years ago
(Last modified a year ago)
0
Replace namespaces in xpath with local-name
.NET 7.0 (C#)
Replace namespaces in xpath with local-name
Submitted by
pvlzh
-
2 years ago
0
vscode-f5 xc reserved ports issue #209
ECMAScript (JavaScript)
https://github.com/f5devcentral/vscode-f5/issues/209
Submitted by
anonymous
-
2 years ago
(Last modified 2 years ago)
0
Egyptian National ID
ECMAScript (JavaScript)
This validates the components of the Egyptian national ID ... See details (Arabic)
Submitted by
Mahmoud Mostafa
-
2 years ago
0
Egyptian Phone Numbers
ECMAScript (JavaScript)
Validate Egyptian phone numbers ... Read More (Arabic)
Submitted by
Mahmoud Mostafa
-
2 years ago
(Last modified 2 years ago)
0
Laughter
ECMAScript (JavaScript)
Matches all laughter like: hahahahhhahahahha hahha ahah lol lolollolll...
Submitted by
Prozilla
-
2 years ago
0
for killerswim
.NET 7.0 (C#)
a
Submitted by
anonymous
-
2 years ago
0
Official Emeil validation Regex
ECMAScript (JavaScript)
Regex from the Mail::RFC822::Address: regexp-based address validation Access here
Submitted by
Igor Julliano Aguiar Sotero
-
2 years ago
0
Youtube Video Id
.NET 7.0 (C#)
Matches the video Id in Youtube URL.
Submitted by
CW
-
2 years ago
0
fcc-title-case-a-sentence
ECMAScript (JavaScript)
a regex to find first letter of each word
Submitted by
anonymous
-
2 years ago
0
IPv4-CIDR
ECMAScript (JavaScript)
Match IPv4-CIDR (JavaScript)
Submitted by
fwqaaq
-
2 years ago
0
Redis command parser
ECMAScript (JavaScript)
Modified source from https://stackoverflow.com/a/64833638/1454045
Submitted by
Nathaniel Schweinberg
-
2 years ago
0
CSS @import statement
ECMAScript (JavaScript)
Matches CSS @import statements with media and layer support
Submitted by
anonymous
-
2 years ago
1
...
174
175
176
177
178
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)