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 6,380 community submitted regex patterns...
0
Taiwan phone number format
ECMAScript (JavaScript)
Forked from https://regex101.com/r/vL1pD2/1
Submitted by
Albert Yu
-
8 years ago
0
[JS] Detect hostname with or without subdomain
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
0
Validate input la boi cua 100k
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
5
North American Phone Number
ECMAScript (JavaScript)
Validate North American phone numbers with capture groups for the Area Code, Exchange Code, Line Number, and Extension.
Submitted by
AaronBoots
-
8 years ago
0
test regex
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
0
Validare CNP Romania Regex
ECMAScript (JavaScript)
This regex is for validating Roumanian CNP ^[1-9]\d{2}(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])(0[1-9]|[1-4]\d|5[0-2]|99)(00[1-9]|0[1-9]\d|[1-9]\d\d)\d$
Submitted by
Ionut M. Ionete
-
8 years ago
1
Find particular punctuation
ECMAScript (JavaScript)
This regex find punctuation like "!", "!!!", "?", "???", "!?", "!!!???" and unlimited time repeated "!" and "?"
Submitted by
Ivijan-Stefan Stipic
-
8 years ago
0
await
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
0
ChatWars Equipment
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
0
Match non self closing tags HTML/XML tags
Golang
no description available
Submitted by
Richard Peng
-
8 years ago
0
Find Language name
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
0
YouTube Channel Username and ID
ECMAScript (JavaScript)
Extract the Channel Username or Channel ID given a YouTube Channel URL.
Submitted by
cris_hitech
-
8 years ago
0
card
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
1
Unuseful names
ECMAScript (JavaScript)
no description available
Submitted by
Moayad
-
8 years ago
1
Community Pageviews
ECMAScript (JavaScript)
no description available
Submitted by
Alfredo Hinojosa
-
8 years ago
1
Tablename = schema.table
ECMAScript (JavaScript)
Tablename composed by schema.table
Submitted by
Glauber Costa Vila Verde
-
8 years ago
1
Find Apostrophe via Regex and JavaScript
ECMAScript (JavaScript)
This is function matching apostrophe via regex and JavaScript. Also find broken apostrophe and match whole word.
Submitted by
Ivijan-Stefan Stipic <creativform@gmail.com>
-
8 years ago
1
import匹配
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
1
Replace sinon stub configuration with ts-mockito equivalent
ECMAScript (JavaScript)
Replaces sinon.js stubs configuration with similar behaviour achievied using the ts-mockito library
Submitted by
anonymous
-
8 years ago
2
IPv4 dotted decimal
ECMAScript (JavaScript)
This regexp was written for Regex Tuesday Challenge - Week Six.
Submitted by
anonymous
-
8 years ago
1
...
252
253
254
255
256
...
319
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)