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 5,840 community submitted regex patterns...
0
MAC Address Python
Python
Checking for MAC address matching in python
Submitted by
dhakavikaskumar
-
2 years ago
0
HTML Link
Python
Get HTML Link
Submitted by
anonymous
-
2 years ago
0
Support post-livraison
ECMAScript (JavaScript)
Detect support post-livraison
Submitted by
anonymous
-
2 years ago
0
My Regex Expression
Python
I'm a new learner and I try to learn in coding & data analyst in web. And also need some financial support as well. I thank to you all when I get chance to learn from you all.
Submitted by
anonymous
-
2 years ago
0
VTT and SRT parser
ECMAScript (JavaScript)
(?:^|(? ([0-2]\d:[0-5]\d:[0-5]\d[.,]\d{3})(.*?)((?:\d+\n)?(?=[0-2]\d:[0-5]\d:[0-5]\d[.,]\d{3})|$)
Submitted by
anonymous
-
2 years ago
0
Different date format and label them accordingly
ECMAScript (JavaScript)
Classify \d\d \/ \d\d \/ \d{4} \w* \d\d, \d{4} \d{4}-\d\d-\d\d and label them
Submitted by
anonymous
-
2 years ago
0
cuda with gpu-number regex
Python
Used for torch.device handling, so 'cuda' and 'cuda:0' both valid and can be used
Submitted by
Ilya Lubenets
-
2 years ago
(Last modified 2 years ago)
0
Anime Xdcc Name + Episode Regex
Golang
Parse XDCC filename strings for a name and episode. Appears to work for most major bots but unreliable for any data other than name and episode number/version
Submitted by
anonymous
-
2 years ago
0
Typescript Types
ECMAScript (JavaScript)
get all typescript types, as well as imports and exports
Submitted by
snuffyDev
-
2 years ago
0
Content inside string
Python
Will match any character inside " or '
Submitted by
anonymous
-
2 years ago
0
REACT SDK V3
Golang
React SDK V3
Submitted by
anonymous
-
2 years ago
0
GO SDK V2
Golang
Go SDK v2
Submitted by
anonymous
-
2 years ago
(Last modified 2 years ago)
0
Kt SDK V2
Golang
kt SDKV2
Submitted by
anonymous
-
2 years ago
(Last modified 2 years ago)
0
匹配不以 http 开头的图片
ECMAScript (JavaScript)
匹配不以 http 开头的图片
Submitted by
anonymous
-
2 years ago
0
正则匹配markdown中的图片 但排除 http 开头的地址
ECMAScript (JavaScript)
正则匹配markdown中的图片 但排除 http 开头的地址
Submitted by
anonymous
-
2 years ago
0
non capturing (a|b|c)가 그룹으로 지정되지 않게 함.
Python
\[[0-9]{4}-[0-9]{2}-[0-9]{2}\](\[(?:debug|warning|error)\]).*
Submitted by
anonymous
-
2 years ago
0
Padrão - numeração de contrato CAIXA
ECMAScript (JavaScript)
teste
Submitted by
anonymous
-
2 years ago
0
WIP detector
Python
Detect WIP strings in a git commit.
Submitted by
anonymous
-
2 years ago
0
Removing port number from URL
ECMAScript (JavaScript)
Find port number and remove it from URL
Submitted by
M Rivas
-
2 years ago
-2
Parsing result of SQL Server version (SELECT @@VERSION)
.NET 7.0 (C#)
Parses MS SQL Server version returned from executing SELECT @@version
Submitted by
M Rivas
-
2 years ago
1
...
280
281
282
283
284
...
292
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)