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,440 community submitted regex patterns...
4
Match Brackets and anything inside
ECMAScript (JavaScript)
no description available
Submitted by
andreayang
-
11 years ago
1
get image with classname
ECMAScript (JavaScript)
no description available
Submitted by
@cloverink
-
11 years ago
1
Anom
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
11 years ago
0
Simple
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
11 years ago
-1
Find image style
ECMAScript (JavaScript)
style img
Submitted by
anonymous
-
11 years ago
3
HTML image tag src
ECMAScript (JavaScript)
Capture src attribute of HTML image tags
Submitted by
Simon Altschuler
-
11 years ago
2
Error in Refex
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
11 years ago
5
Youtube ID matcher
ECMAScript (JavaScript)
Credit: https://gist.github.com/FinalAngel/1876898
Submitted by
anonymous
-
11 years ago
5
Hello world !
ECMAScript (JavaScript)
no description available
Submitted by
Fedir RYKHTIK
-
11 years ago
106
ECMAScript/JavaScript trim
ECMAScript (JavaScript)
Trim leading and trailing whitespace from a string.
Submitted by
fp
-
11 years ago
(Last modified a month ago)
1
...
170
171
172
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)