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 12,640 community submitted regex patterns...
1
japanese telephone number
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
1
Phone USA and CANADA
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
4 years ago
1
A pattern match for a specific WP Gutenberg block
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
1
comment_repl
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
1
Javascript anonymous functions
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
1
IPV6 Match Pattern
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
1
IMAP: Envelope
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
1
IMAP: FULL
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
1
Extract chat conversation
PCRE (PHP <7.3)
Simple regex to extract some chat conversation
Submitted by
anonymous
-
4 years ago
1
E-mail
PCRE (PHP <7.3)
Best guess of e-mail -- using edq
Submitted by
anonymous
-
4 years ago
1
E-mail
PCRE (PHP <7.3)
Best guess of e-mail
Submitted by
anonymous
-
4 years ago
1
stylus --watch
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
1
exclude US traffic in GA
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
1
Mexican Phone
ECMAScript (JavaScript)
Rules for Mexico: Numbers must be 10 digits long Area code is either 2 or 3 digits Remaining phone number has either 7 or 8 digits in groups of 3 or 4
Submitted by
anonymous
-
4 years ago
1
a_link
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
1
Match anything inside round brackets including the brackets and white space before them.
PCRE (PHP <7.3)
no description available
Submitted by
RazerMoon
-
4 years ago
1
Date time recognition
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
1
Influx part file
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
1
url and os from selenium hub
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
1
java关键词匹配
PCRE (PHP <7.3)
nothing
Submitted by
anonymous
-
4 years ago
1
...
252
253
254
255
256
...
632
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)