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 18,000 community submitted regex patterns...
1
Regex ID from Gifs.com URLs
PCRE (PHP <7.3)
no description available
Submitted by
gif, gifs
-
9 years ago
1
Find line and insert under it
Python
Finds a line and appends the replacement below it. Tries to preserve indentation (tabs or spaces) and to avoid duplicate replacements. I used it in Sublime Text to batch edit several instances of a JS config object across several files.
Submitted by
anonymous
-
9 years ago
1
Regex for rfc
ECMAScript (JavaScript)
validates the format for the rfc
Submitted by
anonymous
-
9 years ago
1
Stone
PCRE (PHP <7.3)
Stone Stuff
Submitted by
mralves
-
9 years ago
1
CUW - Remarketing List
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
0
Ip address Validator
PCRE (PHP <7.3)
Validate IP address and IP address range to. xxx.xxx.xxx.xxx and xxx.xxx.xxx.xxx/xxx
Submitted by
nehatiwari
-
9 years ago
1
Ip address
ECMAScript (JavaScript)
xxx.xxx.xxx.xxx and xxx.xxx.xxx.xxx/xxx
Submitted by
nehatiwari
-
9 years ago
1
log
PCRE (PHP <7.3)
no description available
Submitted by
lattis
-
9 years ago
1
.Net app.config appSettings key value matcher
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
CISCO IP Phone EAP-MD5 Username matching
PCRE (PHP <7.3)
no description available
Submitted by
R. de Jong
-
9 years ago
1
BDDF
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
1
crappy method call search (2+ args)
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
Find PHP close tag at end of file
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
marcel hostnames
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
TitleCase__elementWithCase--modifierMatcher
ECMAScript (JavaScript)
Match BEM type regex.
Submitted by
anonymous
-
9 years ago
1
shortcode iframe regex
PCRE (PHP <7.3)
shortcode iframe regex
Submitted by
James Peng
-
9 years ago
1
hacked-url-parser
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
1
test url parse #6
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
0
parsing distinguishedName attribute in LDAP
PCRE (PHP <7.3)
parsing distinguishedName attribute in LDAP. Requires g modifier
Submitted by
las68
-
9 years ago
1
More than 2 empty lines
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
...
209
210
211
212
213
...
900
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)