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
Highest Score
Lowest Score
Most upvotes
Most downvotes
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,500 community submitted regex patterns...
0
SharePoint File Name Vaidation
ECMAScript (JavaScript)
The file name validation algorithm from MS KB905231, I assumed the prohibited suffixes included the file extension. I.e. 'foo.doc.files' would not match but 'foo.files.doc' would.
Submitted by
David Nelson
-
9 years ago
0
Machine readable passport number (second line)
ECMAScript (JavaScript)
Second line of the machine readable passport, based on the excellent article here - http://www.highprogrammer.com/alan/numbers/mrp.html
Submitted by
Leigh Garland
-
9 years ago
0
float
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
0
pass
Python
no description available
Submitted by
anonymous
-
9 years ago
0
Date Groupings
Python
no description available
Submitted by
flipkitty
-
9 years ago
0
WOrd with colon
ECMAScript (JavaScript)
no description available
Submitted by
HJ
-
9 years ago
0
Phone validate
ECMAScript (JavaScript)
Validate Phone number even if contain country code
Submitted by
Jorge Cervantes
-
9 years ago
0
Match HTTP error code
Python
no description available
Submitted by
anonymous
-
9 years ago
0
Remove XML-Style Comments (JavaScript)
ECMAScript (JavaScript)
Exist a problem with simple regex in JS Solution from: https://www.safaribooksonline.com/library/view/regular-expressions-cookbook/9781449327453/ch09s10.html
Submitted by
Arkadiusz Sawicz
-
9 years ago
0
Match_Between_Nth_And_Nth+1_Occurence_Of_Character_Square_Brackets
ECMAScript (JavaScript)
no description available
Submitted by
Connor Goddard
-
9 years ago
0
firefox session parser
Python
retrieve data of firefox .session files
Submitted by
artemisart
-
9 years ago
0
ASP.NET Web Forms dates in JSON
ECMAScript (JavaScript)
Look for date objects in JSON returned from ASP.NET Web Forms.
Submitted by
anonymous
-
9 years ago
0
UK postcodes
Python
Flexible regex to detect full or partial UK postcodes.
Submitted by
Victor Munoz
-
9 years ago
0
Validate Social Security Number
Python
Validate that the social security number follows all of the guidelines of the Social Security Administration, and excludes all voided numbers.
Submitted by
Jacob O'Dea
-
9 years ago
0
Clojure
Python
no description available
Submitted by
anonymous
-
9 years ago
0
CSV parser
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
0
AMCC
Python
no description available
Submitted by
anonymous
-
9 years ago
0
Validador Email
ECMAScript (JavaScript)
Só aceita emails que comecem com letras ou números, tenha de 0 a 32 caracteres, letras, números, ponto ou hífen, antes do @
Submitted by
Gustavo Américo (GAG)
-
9 years ago
0
IPv6 Regex Match Removal
Python
Works for all IPv6 addresses in removing them using regex
Submitted by
vks
-
9 years ago
0
fio group id
Python
This is for a parser for fio results
Submitted by
scurge
-
9 years ago
1
...
103
104
105
106
107
...
275
匹配引号内容/match quotation mark content
-1
Regular Expression
ECMAScript (JavaScript)
/
(?<=
(?:
^
|
[^
\\
]
)
(?:
\\\\
)*
)
(
(
[
`'"
]
)
(
.
*
?
(?:
[^
\\
]
(
\\\\
)*
|
$
)
(
\2
|
$
)
)
)
/
g
Open regex in editor
Description
匹配带引号内容,被引号包含的内容
结构(
$x
)
((前引号)(内容)(后引号))
整体内容(包含引号)
前引号
内容
后引号
默认匹配
[`'"]
引号,可以在表达式的匹配2中更改
消除转义字符对引号的影响
单个有效引号会直接匹配至末尾,若不想匹配至末尾可以移除表达式尾部的
$
Submitted by
诶!你的尾巴掉了
-
a year ago
(Last modified a year ago)