Please enable JavaScript to use this web application.
Regular
Expressions
101
Social
Social
Join the Discord community!
Follow me on twitter!
Send me an email
Donate
Donate
Donate through Paypal
Become a Github Sponsor
Info
Info
Find out what's new!
RegEx101 Wiki
Report bugs or make suggestions
What's new?
Loading content...
Close
Regex Editor
Regex Editor
Community Patterns
Community Patterns
Account
Account
Regex Quiz
Regex Quiz
Settings
Settings
Live Help
Live Help
Get help on Discord
Get help on IRC
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 (C#)
Rust
Sponsors
Community Patterns
Search among 3,460 community submitted regex patterns...
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
fcc-title-case-a-sentence
ECMAScript (JavaScript)
a regex to find first letter of each word
Submitted by
anonymous
-
4 months ago
2023-06-05 03:24
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Youtube Video Id
.NET (C#)
Matches the video Id in Youtube URL.
Submitted by
CW
-
4 months ago
2023-06-05 02:15
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Official Emeil validation Regex
ECMAScript (JavaScript)
Regex from the Mail::RFC822::Address: regexp-based address validation Access here
Submitted by
Igor Julliano Aguiar Sotero
-
4 months ago
2023-06-01 13:35
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Wikipedia ISO 4217 (Currency Codes) table to C# enum
.NET (C#)
This converts the values in this) table to C# code. Example: pulic enum Iso4217 { /* output here */...
Submitted by
Diemaco
-
4 months ago
2023-05-31 08:14
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
for killerswim
.NET (C#)
a
Submitted by
anonymous
-
4 months ago
2023-05-29 23:19
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Laughter
ECMAScript (JavaScript)
Matches all laughter like: hahahahhhahahahha hahha ahah lol lolollolll...
Submitted by
Prozilla
-
4 months ago
2023-05-28 08:48
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Egyptian Phone Numbers
ECMAScript (JavaScript)
Validate Egyptian phone numbers ... Read More (Arabic)
Submitted by
Mahmoud Mostafa
-
4 months ago
2023-05-28 06:37
(Last modified 4 months ago)
2023-05-28 07:27
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Egyptian National ID
ECMAScript (JavaScript)
This validates the components of the Egyptian national ID ... See details (Arabic)
Submitted by
Mahmoud Mostafa
-
4 months ago
2023-05-28 06:02
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
match eslint packages other than next.js
ECMAScript (JavaScript)
This could be used to group eslint stuff in renovate config for a next.js project. Since you're intended to keep eslint-plugin-next at the same version as next itself, you would want to group it with next instead. Using negative lookahead we can ignore eslint-config-next (or anything else you may wi...
Submitted by
Mitsunee
-
4 months ago
2023-05-26 20:32
(Last modified 4 months ago)
2023-05-26 20:33
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
vscode-f5 xc reserved ports issue #209
ECMAScript (JavaScript)
https://github.com/f5devcentral/vscode-f5/issues/209
Submitted by
anonymous
-
4 months ago
2023-05-24 12:57
(Last modified 4 months ago)
2023-05-24 14:16
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Replace namespaces in xpath with local-name
.NET (C#)
Replace namespaces in xpath with local-name
Submitted by
pvlzh
-
4 months ago
2023-05-23 08:29
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
capture strings between paragraphs
ECMAScript (JavaScript)
capture any strings between paragraphs
Submitted by
anonymous
-
4 months ago
2023-05-22 17:36
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
test
ECMAScript (JavaScript)
test
Submitted by
anonymous
-
4 months ago
2023-05-22 15:56
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
decimal number
ECMAScript (JavaScript)
decimal number validation pattern 1.** integer_ 2.** floating point_
Submitted by
martins
-
4 months ago
2023-05-20 22:39
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
0及最多6位正负整数
ECMAScript (JavaScript)
1、匹配6位以内正负整数 2、可以匹配0 有效例子 0 21...
Submitted by
anonymous
-
4 months ago
2023-05-18 03:35
-1
0 upvotes, 1 downvotes (score 0%) (You must be signed in to vote)
Matching un-wrapped HTML & CSS code blocks in Markdown
ECMAScript (JavaScript)
PATTERNS RegEx Flavour ECMAScript (JavaScript, ActionScript, TypeScript, etc.) ...
Submitted by
anonymous
-
4 months ago
2023-05-17 17:36
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Strong Matcher for ISO 8601 / RFC 3339 Date Times; rejects bad TZ offsets, illegal times (Museum of Bad Data)
ECMAScript (JavaScript)
Handles many nuanced cases around time zone offsets, leap seconds and leap days. References: List of UTC Offsets RFC 3339, the stricter rules that most systems use in practice ISO 8601, the widely known name for this format...
Submitted by
Philip Flip Kromer (@mrflip)
-
4 months ago
2023-05-14 07:19
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Time Zone UTC Offsets in actual use for ISO 8601 / RFC 3339 Date Times (Museum of Bad Data)
ECMAScript (JavaScript)
Time Zone UTC Offsets in actual use for ISO 8601 / RFC 3339 Date Times (Museum of Bad Data) https://regex101.com/library/F21Glr Matches only (and every) UTC offset that is in actual use and valid under ISO 8601 and RFC 3339 (Y'know, the '2008-08-08T08:08:08+05:00' looking one, this is the plus/min...
Submitted by
Philip Flip Kromer
-
4 months ago
2023-05-14 05:03
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Four-Digit Leap Years post-Y0 (AD/BCE) (Museum of Bad Data)
ECMAScript (JavaScript)
This will match all four-digit years that are leap years, using the "either (multiple of four but not a multiple of 100) OR (multiple of 400)" rule. Explained / ^(...
Submitted by
Philip Flip Kromer
-
4 months ago
2023-05-14 02:35
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Capture URL without Query Parameters
ECMAScript (JavaScript)
Capture URL without Query Parameters /^(+).*/gm
Submitted by
anonymous
-
4 months ago
2023-05-12 13:41
1
2
3
4
5
6
7
...
173
Semantic Version (semver)
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
.NET (C#)
@"
^
(?<major>
0
|
[
1
-
9
]
\d
*
)
\.
(?<minor>
0
|
[
1
-
9
]
\d
*
)
\.
(?<patch>
0
|
[
1
-
9
]
\d
*
)
(?:
-
(?<prerelease>
(?:
0
|
[
1
-
9
]
\d
*
|
\d
*
[
a
-
zA
-
Z-
]
[
0
-
9a
-
zA
-
Z-
]
*
)
(?:
\.
(?:
0
|
[
1
-
9
]
\d
*
|
\d
*
[
a
-
zA
-
Z-
]
[
0
-
9a
-
zA
-
Z-
]
*
)
)*
)
)?
(?:
\+
(?<buildmetadata>
[
0
-
9a
-
zA
-
Z-
]
+
(?:
\.
[
0
-
9a
-
zA
-
Z-
]
+
)*
)
)?
$
"
gm
Open regex in editor
Description
Loading markdown...
Submitted by
semver.org,Jeff Jacobson
-
10 months ago
2022-11-23 17:48