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
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
0
All Same Number
Python
Check all the numbers are same in a string.
Submitted by
DJA
-
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
Match all files in root dir
Python
Intended for use on a webserver. Only matches files in / and excludes files, whcih could be in subfolders (/myfile).
Submitted by
rugk (rugk <at> posteo.de)
-
9 years ago
1
bb-*
PCRE (PHP <7.3)
aaa
Submitted by
wyj
-
9 years ago
1
matching foramt ,xxx:
Python
for dictionary
Submitted by
anonymous
-
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
Проверка повтора слов
PCRE (PHP <7.3)
От начала строки, разделенных пробелом
Submitted by
DocSS
-
9 years ago
1
match url
PCRE (PHP <7.3)
no description available
Submitted by
jakub
-
9 years ago
1
Compare two comma separated 4-digit years (first must be greater)
PCRE (PHP <7.3)
Compares two comma separated 4-digit years, and if the first one is greater, a match is returned. AUTHOR: Wiktor Stribizew SO PRofile: http://stackoverflow.com/users/3832970/wiktor-stribi%C5%BCew
Submitted by
Wiktor Stribizew
-
9 years ago
1
...
207
208
209
210
211
...
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)