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 320 community submitted regex patterns...
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Valid date (DD-MM-YYYY) from 1900 to 2099
Java 8
Valid date (DD-MM-YYYY) from 1900 to 2099
Submitted by
Nevix-Sama
-
9 months ago
2023-02-24 19:28
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
简单日志匹配
Java 8
普通日志匹配, 匹配出字段: [time, level, logClass, content]
Submitted by
qinxike
-
9 months ago
2023-02-24 07:06
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
match name and surname in a name.surname@domain.com email.
Java 8
This will match any words that show up before the @ sign in an email. Digits, dots, commasz and other special characters are ignored.
Submitted by
WojciechW
-
9 months ago
2023-02-22 14:20
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Get ip address (only ipv4) Validator
.NET (C#)
Get ip address (only ipv4) Validator
Submitted by
Mr.Tang
-
9 months ago
2023-02-21 12:10
(Last modified 9 months ago)
2023-02-21 12:15
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Get ip address (only ipv6) Validator
.NET (C#)
Get ip address (only ipv6) Validator
Submitted by
Mr.Tang
-
9 months ago
2023-02-20 19:35
(Last modified 9 months ago)
2023-02-21 12:08
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Get ip address (only ipv4) Validator
.NET (C#)
Get ip address (only ipv4) Validator
Submitted by
Mr.Tang
-
9 months ago
2023-02-20 18:43
(Last modified 9 months ago)
2023-02-21 12:05
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
CPF Number Repetition
Java 8
It matches CPF (Cadastro de Pessoa Física) with all digits as the same number. Since CPF consists in a pattern ###.###.###-##, or ###########, and # being a single digit, this document cannot have all the 11 (eleven) digits as the same number. Therefore 000.000.000.000-00 would not be an example o...
Submitted by
TheRockSaysOP
-
10 months ago
2023-02-18 17:28
(Last modified 10 months ago)
2023-02-18 17:40
-2
0 upvotes, 2 downvotes (score 0%) (You must be signed in to vote)
Parsing result of SQL Server version (SELECT @@VERSION)
.NET (C#)
Parses MS SQL Server version returned from executing SELECT @@version
Submitted by
M Rivas
-
10 months ago
2023-02-15 21:12
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
elasticsearch exception explain regex
Java 8
throw elasticsearch exception logger info, find exception type and reason field
Submitted by
jason
-
10 months ago
2023-02-15 07:29
2
3 upvotes, 1 downvotes (score 30.1%) (You must be signed in to vote)
Mime type parser
.NET (C#)
A "simple" regex to parse mime types. Handles all commonly occurring parts of a mime type string such as: Type Subtype Subtype's with an extra extension (e.g. svg+xml) (Optional input) Multiple parameters (Optional input)...
Submitted by
Vespion
-
10 months ago
2023-02-14 14:11
(Last modified 10 months ago)
2023-02-14 16:03
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Password
Java 8
Password
Submitted by
Mohammed Elshaboury
-
10 months ago
2023-02-13 13:54
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
OmegaT
Java 8
regular expressions used in OmegaT
Submitted by
anonymous
-
10 months ago
2023-02-10 08:09
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Phone number for all countries
.NET (C#)
Phone number for all countries. Valid symbols: ( ), -, whitespace
Submitted by
Alexander Smirnov
-
10 months ago
2023-02-07 07:33
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
15.02.2022 15:00:00
.NET (C#)
15.02.2022 15:00:00
Submitted by
anonymous
-
10 months ago
2023-02-06 12:57
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Minimum 10 herhangi dijit
.NET (C#)
Minimum 10 herhangi dijit
Submitted by
anonymous
-
10 months ago
2023-02-06 12:55
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
USD
.NET (C#)
USD
Submitted by
anonymous
-
10 months ago
2023-02-06 12:53
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
01 Jan 2022 Mon 01:02:03
.NET (C#)
01 Jan 2022 Mon 01:02:03
Submitted by
anonymous
-
10 months ago
2023-02-06 12:52
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
^[A-Z,a-z,\-, ,\&]+$
.NET (C#)
Koray Bilgi, Text-Regex
Submitted by
anonymous
-
10 months ago
2023-02-06 12:47
-1
0 upvotes, 1 downvotes (score 0%) (You must be signed in to vote)
MMM DDD YYYY
.NET (C#)
FEB MON 2023
Submitted by
anonymous
-
10 months ago
2023-02-06 12:42
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
HTML Image Regex
Java 8
This code will find image files with .gif and .jpg extensions which are present in a HTML or CSS code. Here I am using the prefix '/asmproxy/' to identify the resource and then checking if extension ends with a .gif or .jpg. This Regex has its limitations as we are using prefix.
Submitted by
Suman Mummaneni
-
10 months ago
2023-02-03 11:29
1
2
3
4
5
6
7
...
16
OmegaT
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
Java 8
"
^\p{Zs}
*
(
<
(?:
/
?
[
xg
]
\d
|
[
xg
]
\d
/
)
>
\p{Zs}
*
)+
\p{Zs}
*
$
"
gm
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
10 months ago
2023-02-10 08:09