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,660 community submitted regex patterns...
1
Get IDs from Discord message link
ECMAScript (JavaScript)
This regex captures the IDs in a message link in separate capture groups. Warning: Due to my personal use case, it doesn't care if it's a real Discord message URL. You can pretty easily add that yourself if you need it tho. Capturing groups: Match 1: The whole ID string starting with / and may be e...
Submitted by
SIMPLE MARK
-
2 years ago
1
RFC5322-Email-Id-WHATWG
ECMAScript (JavaScript)
RFC5322 with WHATWG standard email id regex pattern
Submitted by
Sivanesan
-
2 years ago
1
ISO 8601:2004E Duration
.NET 7.0 (C#)
Regex for validating ISO 8601:2004E durations, complete with named capture groups.
Submitted by
Sakura Akeno Isayeki
-
2 years ago
1
Find Matching Parenthesis, Brackets, and Curly Brackets
ECMAScript (JavaScript)
Given a string, find matching parenthesis, brackets, and/or curly brackets.
Submitted by
Matthew Hiebing
-
2 years ago
1
Japanese Characters matching
ECMAScript (JavaScript)
Regex for Matching Jap Romaji Chars. I am in the middle of making an interface for Anki that works life wanikani. This way I can practice my own cards instead of a set syllabus. For that I need to make a Japanese Kana input, so I went with the good old regex to match all the romaji groups which ca...
Submitted by
Aashay Thakur
-
2 years ago
(Last modified 2 years ago)
1
Decimal number
ECMAScript (JavaScript)
Matches any decimal number. Supports positive/negative sign, thousands separators, and implicit zeros.
Submitted by
XeNoX (D:T0M11#1774, G/XNX11, i@xenox_officiel, T@XeNoXoff)
-
2 years ago
1
Unformatted Decimal number
ECMAScript (JavaScript)
Matches any mathematically correct decimal number which is not formatted.
Submitted by
XeNoX (D:T0M11#1774, G/XNX11, i@xenox_officiel, T@XeNoXoff)
-
2 years ago
1
Unformatted Dozenal number
ECMAScript (JavaScript)
Matches any mathematically correct dozenal number which is not formatted.
Submitted by
XeNoX (D:T0M11#1774, G/XNX11, i@xenox_officiel, T@XeNoXoff)
-
2 years ago
1
Dozenal number
ECMAScript (JavaScript)
Matches any dozenal number. Supports positive/negative sign, thousands separators, and implicit zeros.
Submitted by
XeNoX (D:T0M11#1774, G/XNX11, i@xenox_officiel, T@XeNoXoff)
-
2 years ago
1
Dozenal number (Restricted)
ECMAScript (JavaScript)
Matches dozenal numbers. Supports positive/negative sign and thousands separators.
Submitted by
XeNoX (D:T0M11#1774, G/XNX11, i@xenox_officiel, T@XeNoXoff)
-
2 years ago
1
Decimal number (Restricted)
ECMAScript (JavaScript)
Matches decimal numbers. Supports positive/negative sign and thousands separators.
Submitted by
XeNoX (D:T0M11#1774, G/XNX11, i@xenox_officiel, T@XeNoXoff)
-
2 years ago
1
ISBN-10
ECMAScript (JavaScript)
Regex that matches the old ISBN-10 format and captures all relevant groups. It does not verify that the ISBN is valid though. The format specification is based on the following website: https://isbn-information.com/the-10-digit-isbn.html and the International ISBN Agency user's manual.
Submitted by
Alejandro
-
2 years ago
1
ISBN-13
ECMAScript (JavaScript)
Regex that matches the new (as of 2007) ISBN-13 format and captures all relevant groups. It does not verify that the ISBN is valid though. The format specification is based on the following website: https://isbn-information.com/the-13-digit-isbn.html and the International ISBN Agency user's manual.
Submitted by
Alejandro
-
2 years ago
1
surnames
Python
italian uppercase surnames
Submitted by
anonymous
-
2 years ago
1
SGR ANSI escape sequences
Python
Find all SGR-type ANSI escape sequences
Submitted by
delameter
-
2 years ago
1
Only letters, accents and space
Python
Regex that catches everything that is not text (including emotes)
Submitted by
https://www.linkedin.com/in/devfabriciors/
-
2 years ago
1
11位整数含两位小数校验
ECMAScript (JavaScript)
100.00 10000.00 过滤非 0 开头两位小数
Submitted by
yang
-
2 years ago
1
中文匹配
ECMAScript (JavaScript)
本示例启用了多行匹配 m
Submitted by
yang
-
2 years ago
1
js获取url上的参数
ECMAScript (JavaScript)
/(+)=(+)/gm
Submitted by
anonymous
-
2 years ago
1
Find duplicate char in a string
ECMAScript (JavaScript)
it was used in this codewar challenge. and i find i really interesting. Also u can Write it like this if you want /(.)\1+/g it works exactly the same
Submitted by
anonymous
-
2 years ago
1
...
252
253
254
255
256
...
283
Community Library Entry
72
Regular Expression
Recommended
ECMAScript (JavaScript)
/
(?:
(
[
+
]
\d
{1,4}
)
[
-.
\s
]
?
)?
(?:
[
(
]
(
\d
{1,3}
)
[
)
]
[
-.
\s
]
?
)?
(
\d
{1,4}
)
[
-.
\s
]
?
(
\d
{1,4}
)
[
-.
\s
]
?
(
\d
{1,9}
)
/
g
Open regex in editor
Description
Detects most of the phone numbers all over the world
Submitted by
Aditya Joshi
-
11 years ago
(Last modified a year ago)