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,640 community submitted regex patterns...
1
Remove italics in less than three letters...
ECMAScript (JavaScript)
Subtitle Edit
Submitted by
paconaranjo
-
11 years ago
2
Punto antes de ¿ o ¡
ECMAScript (JavaScript)
Corregir la falta de punto cuando se abre un signo de exclamación o interrogación para el idioma español.
Submitted by
paconaranjo
-
11 years ago
35
Google like regex
ECMAScript (JavaScript)
Attempts to mimic Google search box behavior, returning an array with the separated search strings (that keep the +/- indicator for following operations)
Submitted by
mettjus
-
11 years ago
0
ssi tag into html contents with file and virtual directives
ECMAScript (JavaScript)
no description available
Submitted by
Prashant Gaur
-
11 years ago
3
po box
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
11 years ago
1
12345
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
11 years ago
-2
Select ID from regex101 URL
ECMAScript (JavaScript)
no description available
Submitted by
Vinay
-
11 years ago
1
Select inside <a> tag
ECMAScript (JavaScript)
no description available
Submitted by
Vinay
-
11 years ago
72
Regex for telephone numbers all over the world
Recommended
ECMAScript (JavaScript)
Detects most of the phone numbers all over the world
Submitted by
Aditya Joshi
-
11 years ago
(Last modified a year ago)
1
gh
ECMAScript (JavaScript)
no description available
Submitted by
ghb
-
11 years ago
1
dsf
ECMAScript (JavaScript)
no description available
Submitted by
fdsfdsfdsf
-
11 years ago
2
Replace \n by <br />
ECMAScript (JavaScript)
Replace non-ending string \n by the HTML tag
Submitted by
anonymous
-
11 years ago
1
javascript variable
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
11 years ago
3
Outside Quotes
ECMAScript (JavaScript)
match any string outside of single or double quotes
Submitted by
anonymous
-
11 years ago
2
Find 'console.' but not 'console.log'
ECMAScript (JavaScript)
no description available
Submitted by
Jay Johnson
-
11 years ago
1
Find UnCommented Console. Code
ECMAScript (JavaScript)
no description available
Submitted by
Jay Johnson
-
11 years ago
0
Splits jquery selector, 2nd part is selector of last element
ECMAScript (JavaScript)
no description available
Submitted by
Uzair Farooq
-
11 years ago
1
Singular or Plural
ECMAScript (JavaScript)
no description available
Submitted by
Gavin Jackson
-
11 years ago
2
US and Canada Regex
ECMAScript (JavaScript)
A zipcode regex for validation of both US and Canada
Submitted by
Kyle M.
-
11 years ago
-1
email
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
11 years ago
1
...
178
179
180
181
182
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)