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)
URLs and Emails RegEx
.NET (C#)
A neat regular expression to extract web urls and emails from a paragraph or a text stream.
Submitted by
kosalanuwan
-
a year ago
2022-08-08 16:36
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
取字母中间的数字
Java 8
获取前后各有一个数字,中间的数字
Submitted by
lemon 1900
-
a year ago
2022-08-08 02:55
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
UK PostCode Validation
.NET (C#)
Flexible postcode validation with or without space as outlined here, but added optional space for flexibility https://assets.publishing.service.gov.uk/government/uploads/system/uploads/attachment_data/file/488478/Bulk_Data_Transfer_-_additional_validation_valid_from_12_November_2015.pdf
Submitted by
anonymous
-
a year ago
2022-08-06 16:29
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Postgresql JDBC URI
Java 8
Formats jdbc:postgresql:database jdbc:postgresql:/ jdbc:postgresql://host/database jdbc:postgresql://user:password@host/database...
Submitted by
fantabulum
-
a year ago
2022-08-05 19:40
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
IP Address Validator
Java 8
Validates IPv4 Address for Java
Submitted by
krzysp, jpalvesloiola
-
a year ago
2022-08-03 20:30
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
IP Address
Java 8
(^([0-9]{2,3}.)([0-9]{2,3}.)([0-9]{2,3}.)([0-9]{2,3})$)
Submitted by
anonymous
-
a year ago
2022-08-02 08:40
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
ISO 8601:2004E Duration
.NET (C#)
Regex for validating ISO 8601:2004E durations, complete with named capture groups.
Submitted by
Sakura Akeno Isayeki
-
a year ago
2022-08-02 06:22
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Markdown link
.NET (C#)
Regex for parsing markdown link. Named group "text", "url" and "alt.
Submitted by
anonymous
-
a year ago
2022-07-22 11:51
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Bangladeshi Mobile and Telephone Number
Java 8
Matches with Bangladeshi Mobile and Telephone Numbers
Submitted by
kaziNAHIAN
-
a year ago
2022-07-21 10:23
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Cron Syntax
Java 8
This checks the syntax for CRON
Submitted by
Till Hummel
-
a year ago
2022-07-18 13:01
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
FullName_regex
Java 8
2135
Submitted by
anonymous
-
a year ago
2022-07-14 15:33
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
XAML invert Grid.Column and Grid.Row to Grid.Row and Grid.Column
.NET (C#)
Inverts the 2 attributes
Submitted by
anonymous
-
a year ago
2022-07-12 10:44
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Guid parser
.NET (C#)
Guid parser
Submitted by
anonymous
-
a year ago
2022-07-11 19:29
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Illegal characters for directory name
Java 8
Pattern matches to all illegal characters in directory name. Can be useful for normalizing the folder name before creating it
Submitted by
Vlad Yevtushenko
-
a year ago
2022-07-08 06:09
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Nepali phone number regex
.NET (C#)
(\+977)?9\d{8}
Submitted by
anonymous
-
a year ago
2022-07-02 10:49
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
时间
Java 8
时间
Submitted by
旧信
-
a year ago
2022-06-30 08:33
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Fixed Email Regex (emailregex.com)
Java 8
An email regex that allows for capitals after the final dot (ie. TEST@GMAIL.COM)
Submitted by
anonymous
-
a year ago
2022-06-29 19:14
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
No leading or trailing spaces
.NET (C#)
No leading or trailing spaces
Submitted by
anonymous
-
a year ago
2022-06-27 08:36
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Ipv4 with optional port
.NET (C#)
ipv4 with optional port
Submitted by
anonymous
-
a year ago
2022-06-27 08:13
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Match all filenames in any URL including those with ANSI escaped characters (dotNET version)
.NET (C#)
Match all filenames in any URL including those with ANSI escaped characters (dotNET version)
Submitted by
The Fourth Bird
-
a year ago
2022-06-26 16:08
(Last modified a year ago)
2022-06-27 09:05
1
...
6
7
8
9
10
11
12
...
16
Valid date (DD-MM-YYYY) from 1900 to 2099
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
Java 8
"
^
(
(
0
)*
[
1
-
9
]
|
1
[
012
]
|
3
[
01
]
)
-
(
(
0
)*
[
1
-
9
]
|
1
[
012
]
|
2
[
012
]
|
3
[
01
]
)
-
(
19
[
0
-
9
]
[
0
-
9
]
|
20
[
0
-
9
]
[
0
-
9
]
)
$
"
gm
Open regex in editor
Description
Loading markdown...
Submitted by
Nevix-Sama
-
9 months ago
2023-02-24 19:28