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,860 community submitted regex patterns...
1
IRCCloud extract usernames
PCRE (PHP <7.3)
Extract the usernames out of a log dump from IRCCloud
Submitted by
Ivoah
-
9 years ago
1
email validation
ECMAScript (JavaScript)
checks that the mail is valid
Submitted by
amine.hallili@gmail.com
-
9 years ago
1
Password Security and Validation
PCRE (PHP <7.3)
A password regex that has to have at least 1 uppercase caracter, 1 lowercase caracter, 1 special caracter and a digit
Submitted by
MestreMurai
-
9 years ago
1
validate 14,9 decimals
PCRE (PHP <7.3)
validate 14,9 decimals
Submitted by
Ganey
-
9 years ago
0
Password Security and Validation
PCRE (PHP <7.3)
A password regex that has to have 6 characters at minimum, not spaces allowed, and at least 1 special character, 1 uppercase letter, 1 lowercase letter and a digit
Submitted by
MestreMurai
-
9 years ago
1
us phone numbers 1
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
1
US Phone Numbers 2
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
1
Find label tags without for attributes
PCRE (PHP <7.3)
no description available
Submitted by
DevlshOne
-
9 years ago
1
Giphy ID Regex
PCRE (PHP <7.3)
Get the ID from the multiple Giphy URLs
Submitted by
anonymous
-
9 years ago
1
.Net
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
header-tags
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
0
Поиск процента ({число}%) в строке
PCRE (PHP <7.3)
Выражение осуществялет поиск процента в строке вида: 10% 5-17% 25-74,3% 41,6-48% 3,5-27,9%
Submitted by
Mashoshin Sergey
-
9 years ago
1
Title Case deliminator split
PCRE (PHP <7.3)
Splits words for title casing; $0[0].toUpperCase(); `
Submitted by
anonymous
-
9 years ago
1
Validation for full ISO8601 date and time with timezone
ECMAScript (JavaScript)
The RegExp validates ISO8601 date and time (without milliseconds) with timezone offset.
Submitted by
pioneer32
-
9 years ago
1
fasting range
PCRE (PHP <7.3)
Find fasting range in lab result text
Submitted by
geoff
-
9 years ago
1
result range
PCRE (PHP <7.3)
Find range in lab result text
Submitted by
geoff
-
9 years ago
1
bb-*
PCRE (PHP <7.3)
aaa
Submitted by
wyj
-
9 years ago
1
test
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
Comienzo de string
PCRE (PHP <7.3)
Señala el comienzo de un string en modo multilinea
Submitted by
Juan Miguel
-
9 years ago
1
Add a string to a comma-separated list if not already in list
PCRE (PHP <7.3)
matches only lines that do not contain the string uses negative look arounds appends the new item always to the back suffers from a leading comma in case the list was empty
Submitted by
@ubunatic
-
9 years ago
1
...
181
182
183
184
185
...
643
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)