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,040 community submitted regex patterns...
0
URL detector
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
test
Python
no description available
Submitted by
anonymous
-
7 years ago
0
Regex find url between tags [file]
PCRE (PHP <7.3)
no description available
Submitted by
rohmad-st
-
7 years ago
0
Example 1 - Separation of Word from Punctuation
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
getfreessimg
Golang
no description available
Submitted by
anonymous
-
7 years ago
0
Last Name & Comma Regex
Golang
no description available
Submitted by
anonymous
-
7 years ago
0
Last Name & Comma Regex
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
Fair calc
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
jenkins plugin scan
Python
no description available
Submitted by
anonymous
-
7 years ago
0
isilon drive ok to gone end of flexprotect job
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
method
Python
no description available
Submitted by
anonymous
-
7 years ago
0
Splunk Isilon cluster name
PCRE (PHP <7.3)
no description available
Submitted by
mwk
-
7 years ago
0
date
Python
no description available
Submitted by
anonymous
-
7 years ago
0
Selection email
PCRE (PHP <7.3)
(\w+)@.+\.(fr|com)\b
Submitted by
anonymous
-
7 years ago
0
Digitarvike
PCRE (PHP <7.3)
MPPs, product and price
Submitted by
anonymous
-
7 years ago
0
IPv4 address
ECMAScript (JavaScript)
Match IPv4 address, optionally with /32 CIDR notation
Submitted by
anonymous
-
7 years ago
0
IPv4 address
ECMAScript (JavaScript)
Match IPv4 address, optionally with /32 CIDR notation
Submitted by
anonymous
-
7 years ago
0
NOT a word example with Shopify
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
Primality
PCRE (PHP <7.3)
Matches any sequence of consecutive ones that isn't of prime length.
Submitted by
anonymous
-
7 years ago
0
squarespace image rewrite
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
7 years ago
1
...
530
531
532
533
534
...
902
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)