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...
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
ISD Codes for Phones
ECMAScript (JavaScript)
ISD Codes for Phones Matches the basic format for ISD Codes.
Submitted by
Arvind Singh Rawat
-
4 months ago
2023-05-10 11:59
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Phrase enclosed case insensitive
.NET (C#)
Match everything enclosed, say, a phrase, with case insensitive.
Submitted by
kosalanuwan
-
4 months ago
2023-05-09 15:42
1
2 upvotes, 1 downvotes (score 20.8%) (You must be signed in to vote)
tiktok video id
ECMAScript (JavaScript)
get tiktok video id https://m.tiktok.com/h5/share/usr/6641141594707361797.html https://m.tiktok.com/v/6749869095467945218.html https://www.tiktok.com/@cchelseam..eow/video/6751181801206729990 https://www.tiktok.com/embed/6567659045795758085...
Submitted by
threedot
-
4 months ago
2023-05-09 10:42
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Match Discord Emoji
ECMAScript (JavaScript)
This matches all type of emoji which can be used on Discord.
Submitted by
cph101
-
4 months ago
2023-05-08 16:27
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Catch multiline escaped text between quotes
ECMAScript (JavaScript)
Catch multiline escaped text between quotes: Catch quotes It is a functional component...
Submitted by
David Blanchard
-
4 months ago
2023-05-08 12:51
(Last modified 4 months ago)
2023-05-16 19:33
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Trimmed (no unicode space separators at start or end of string
ECMAScript (JavaScript)
Disallows all space-like characters -- see https://www.fileformat.info/info/unicode/category/Zs/list.htm -- at the start or end of the string
Submitted by
anonymous
-
5 months ago
2023-05-05 01:36
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
phones
ECMAScript (JavaScript)
Разбирает список телефонов, разделенных ;
Submitted by
Alex
-
5 months ago
2023-05-04 17:00
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
date time validation
.NET (C#)
Validation of the date of time, taking into account the high year in the format date.ToString("yyMMdd-hh_mm_ss").
Submitted by
Oleksii Serikov (alex@neochrom.biz)
-
5 months ago
2023-05-04 16:18
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
gsap current price
ECMAScript (JavaScript)
Getting google shopping current pricees
Submitted by
anonymous
-
5 months ago
2023-05-03 19:23
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Commafication (this BREAKS ON APPLE DEVICES!!!!)
ECMAScript (JavaScript)
Commafy any number! 30000 = 30,000 303123 = 303,123 999888777 = 999,888,777
Submitted by
Mendel Groner
-
5 months ago
2023-04-30 16:21
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Unicode Email Validation
ECMAScript (JavaScript)
Unicode Email Validation
Submitted by
anonymous
-
5 months ago
2023-04-26 16:12
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
hsl colors
ECMAScript (JavaScript)
matches many HSL and HSLA formats permitted in CSS
Submitted by
anonymous
-
5 months ago
2023-04-25 09:35
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Extract email from - Add "email"
ECMAScript (JavaScript)
Replace Add "xyz@abc.com" with xyz@abc.com
Submitted by
anonymous
-
5 months ago
2023-04-20 19:11
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Email address supporting plus addressing and multiple subdomains.
ECMAScript (JavaScript)
This expression follows the rules displayed at https://knowledge.validity.com/hc/en-us/articles/220560587-What-are-the-rules-for-email-address-syntax-. Note that their rules DO NOT exactly match those of the applicable RFC 5322 (sections 3.2.3 and 3.4.1) and RFC 5321, but rather supports a pattern ...
Submitted by
Eric Bewley
-
5 months ago
2023-04-20 12:21
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Filename without extension
ECMAScript (JavaScript)
Selects only the filename of a file, including dotfiles.
Submitted by
anonymous
-
5 months ago
2023-04-17 18:59
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
find domains in text
ECMAScript (JavaScript)
This regex will find domain inside of strings
Submitted by
anonymous
-
5 months ago
2023-04-14 10:04
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
S3 AWS Bucket Matcher
ECMAScript (JavaScript)
This matcher follows the rules given at https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html for legal s3 bucket names (the segment before the first slash if any)
Submitted by
anonymous
-
5 months ago
2023-04-13 00:01
(Last modified 5 months ago)
2023-04-13 00:43
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
All Phone Number in VietNam in a real project
ECMAScript (JavaScript)
This is data from many years and my boss want me to extract all the number in spreadsheet, it's about 14,000 records
Submitted by
Le Nam Son
-
5 months ago
2023-04-08 19:15
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
Caltrans EA validation with optional XX-XXXXXX entry and C##-#????#
.NET (C#)
Checks validity of an EA number first two digits 01-12 followed by hyphen then a number from 0-4 and then 4 numbers or uppercase letters and ending in a 1 or 4 for example "05-1J7601". Adding a capital C to the beginning is also accepted "C05-1J7601", along with the entry of 2 X's hyphen and 6 X's ...
Submitted by
RDJ@Ct
-
5 months ago
2023-04-07 19:11
(Last modified 5 months ago)
2023-04-07 19:51
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Check Windows file name
.NET (C#)
Verifying Windows file names (without suffix)
Submitted by
anonymous
-
6 months ago
2023-04-06 01:43
1
2
3
4
5
6
7
8
...
173
Ipv4 with optional port
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
.NET (C#)
@"
^
(
25
[
0
-
5
]
|
2
[
0
-
4
]
[
0
-
9
]
|
[
01
]
?
[
0
-
9
]
[
0
-
9
]
?
)
\.
(
25
[
0
-
5
]
|
2
[
0
-
4
]
[
0
-
9
]
|
[
01
]
?
[
0
-
9
]
[
0
-
9
]
?
)
\.
(
25
[
0
-
5
]
|
2
[
0
-
4
]
[
0
-
9
]
|
[
01
]
?
[
0
-
9
]
[
0
-
9
]
?
)
\.
(
25
[
0
-
5
]
|
2
[
0
-
4
]
[
0
-
9
]
|
[
01
]
?
[
0
-
9
]
[
0
-
9
]
?
)
(?:
:
(
\d
|
[
1
-
9
]
\d
{1,3}
|
[
1
-
5
]
\d
{4}
|
6
[
0
-
4
]
\d
{3}
|
65
[
0
-
4
]
\d
{2}
|
655
[
0
-
2
]
\d
|
6553
[
0
-
5
]
)
)?
$
"
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
a year ago
2022-06-27 08:13