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 6,140 community submitted regex patterns...
0
嵌入条件
PCRE2 (PHP >=7.3)
嵌入条件
Submitted by
anonymous
-
2 years ago
0
Remove Hatena blog keyword
PCRE2 (PHP >=7.3)
Remove Hatena blog keyword
Submitted by
anonymous
-
2 years ago
0
simulate to event
PCRE2 (PHP >=7.3)
simulate to event
Submitted by
anonymous
-
2 years ago
0
simulate to event
PCRE2 (PHP >=7.3)
simulate to event
Submitted by
anonymous
-
2 years ago
0
simulate to event
PCRE2 (PHP >=7.3)
simulate to event
Submitted by
anonymous
-
2 years ago
0
find abc in string
PCRE2 (PHP >=7.3)
first test
Submitted by
anonymous
-
2 years ago
0
regex-input-number
PCRE2 (PHP >=7.3)
regex-input-number
Submitted by
me
-
2 years ago
0
Partial Date
PCRE2 (PHP >=7.3)
Partial date
Submitted by
anonymous
-
2 years ago
0
Remove all duplicate words
ECMAScript (JavaScript)
Removes all words that are NOT followed by a space, followed by the same word
Submitted by
anonymous
-
2 years ago
(Last modified 2 years ago)
0
/Host: (.*?)<br>/gu
PCRE2 (PHP >=7.3)
1
Submitted by
anonymous
-
2 years ago
0
Tailwindcss Dark: class selection
ECMAScript (JavaScript)
Select all dark: classes in a project to remove it if you want that.
Submitted by
Amit
-
2 years ago
(Last modified 2 years ago)
0
非贪婪
PCRE2 (PHP >=7.3)
非贪婪
Submitted by
anonymous
-
2 years ago
0
独占模式
PCRE2 (PHP >=7.3)
独占模式
Submitted by
anonymous
-
2 years ago
0
灾难性回溯
PCRE2 (PHP >=7.3)
灾难性回溯
Submitted by
anonymous
-
2 years ago
0
Replace regex with [does not contain string + contain string]
PCRE2 (PHP >=7.3)
o let's imagine this here: images/dwaudhawd_Test Picture.png I would need to replace this into this:...
Submitted by
Suman Maharjan
-
2 years ago
0
Kucoin trading
PCRE2 (PHP >=7.3)
Used to match kucoin trading links
Submitted by
anonymous
-
2 years ago
0
Remove leading and trailing spaces
ECMAScript (JavaScript)
Remove leading and trailing spaces from multiline text.
Submitted by
Freemen Muaddib
-
2 years ago
0
Remove Empty Lines From TXT Document
ECMAScript (JavaScript)
Remove all empty lines from text document.
Submitted by
anonymous
-
2 years ago
0
Get HTML Balise
PCRE2 (PHP >=7.3)
.
Submitted by
anonymous
-
2 years ago
0
google
PCRE2 (PHP >=7.3)
google api
Submitted by
anonymous
-
2 years ago
1
...
252
253
254
255
256
...
307
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)