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...
5
Separate words (works with spaces, dashes and underscores)
PCRE (PHP <7.3)
no description available
Submitted by
marcoslhc
-
10 years ago
5
Find All Python imports
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
3
php input:date yyyy-mm-dd
PCRE (PHP <7.3)
improved "Ahmed Z" regexp. PHP date format (and input[type=text] format date too): YYYY-MM-DD. Year between [1900-2099]. No leap year check. Month 02 is limited to 29 days.
Submitted by
Oropesa
-
10 years ago
-2
link
Python
no description available
Submitted by
NTP-[SADAS]
-
10 years ago
2
PAN verification regex
PCRE (PHP <7.3)
Regex to verify PAN in India
Submitted by
Anirban
-
10 years ago
2
log trillian
Python
no description available
Submitted by
NTP-[SADAS]
-
10 years ago
16
Hashtag
ECMAScript (JavaScript)
The secret of the Twitterverse.
Submitted by
Joogl
-
10 years ago
1
Test
PCRE (PHP <7.3)
test
Submitted by
royskatt
-
10 years ago
1
semver
PCRE (PHP <7.3)
Semantic Versioning regex pattern according to Tom Preston-Werner http://semver.org/ https://github.com/mojombo/semver/blob/master/semver.md ...
Submitted by
@gvlx <Gerardo Lisboa>
-
10 years ago
4
semver
Recommended
PCRE (PHP <7.3)
Semantic Versioning regex pattern according to Tom Preston-Werner http://semver.org/ https://github.com/mojombo/semver/blob/master/semver.md First version of this regex follows semver 2.0.0....
Submitted by
@gvlx <Gerardo Lisboa>
-
10 years ago
1
Europead date or MSSQL Timestamp
PCRE (PHP <7.3)
Matches european dates (DD.MM.YYYY[ HH:MM:SS]) and MS-SQL Timestamp ({ts 'YYYY-MM-DD HH:MM:SS'})
Submitted by
anonymous
-
10 years ago
-2
Decimal Number
ECMAScript (JavaScript)
Parse decimal numbers with optional thousands and/or decimal separator. #i18n #l11n #international
Submitted by
Andreas Pizsa
-
10 years ago
1
input mandatory title
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
0
webongo
PCRE (PHP <7.3)
webongo test
Submitted by
webongo
-
10 years ago
1
search mailadress
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
-2
valid windows file name
ECMAScript (JavaScript)
no description available
Submitted by
Mitacha
-
10 years ago
4
Remove HTML tags
PCRE (PHP <7.3)
This regex is used to remove HTML tag on string
Submitted by
Jordane BACHELET
-
10 years ago
1
Mips I-Type Instructions
PCRE (PHP <7.3)
Parses an I-Type Mips instruction. You can add and remove instructions in the list to support more I-Type instructions. Will detect only "addi", "andi" or "ori" as is
Submitted by
lunfel
-
10 years ago
1
Mips R-Type Instructions
PCRE (PHP <7.3)
Parses an R-Type Mips instruction. You can add and remove instructions in the list to support more R-Type instructions. Will detect only "add", "and", "nor" or "sub" as is
Submitted by
lunfel
-
10 years ago
1
find single character
PCRE (PHP <7.3)
Why this regEx not find all single character? Why not work Start of string and End of string in bracket?
Submitted by
anonymous
-
10 years ago
1
...
875
876
877
878
879
...
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)