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 220 community submitted regex patterns...
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Cover dates from 2009 and older in French format and English
Java 8
Covering Dates starting from year 2009 and older in French and English Some of the valid Dates format April 2nd 2008 April 2 2008 April 02 2008...
Submitted by
Francois-Alexandre Valade-Casaubon
-
6 months ago
2023-06-19 17:38
-2
0 upvotes, 2 downvotes (score 0%) (You must be signed in to vote)
Ascending and Descending order
Java 8
This regex is to match Ascending or descending order of 8 digit number
Submitted by
anonymous
-
5 months ago
2023-07-17 15:51
-1
0 upvotes, 1 downvotes (score 0%) (You must be signed in to vote)
Dart relative import
Java 8
find dart relative import path
Submitted by
sagarpanchal
-
5 months ago
2023-07-11 13:37
-1
0 upvotes, 1 downvotes (score 0%) (You must be signed in to vote)
Capturing groups with suffix
Java 8
Capturing the content of column names which are duplicate in nature to extract the actual name and suffix ("right" / "left")
Submitted by
anonymous
-
5 months ago
2023-07-17 08:05
-1
1 upvotes, 2 downvotes (score 6.1%) (You must be signed in to vote)
IPv4 Matcher
Java 8
This RE is divided into four parts. The first three parts are acceptable numbers from 0 to 255 followed by "." The last part is an acceptable number but not followed by "."
Submitted by
EMAM1999
-
3 years ago
2021-03-24 16:23
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
Regular expression for extracting HTML tag attributes
Java 8
no description available
Submitted by
Amir Arian
-
9 years ago
2014-12-07 08:25
(Last modified 5 months ago)
2023-07-21 11:48
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
Bash (sed)
Java 8
no description available
Submitted by
anonymous
-
7 years ago
2016-06-22 06:56
(Last modified 5 months ago)
2023-07-20 08:08
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
Analyze movie and series episode torrent name
Java 8
Analyze whether the torrent name is a Movie or TV Episode Inspired from https://regex101.com/library/yP4bY4 There is two versions, see differences at the bottom Groups:...
Submitted by
Hot Priest
-
a year ago
2023-01-09 15:47
(Last modified a year ago)
2023-01-09 15:48
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
String doesn't start or end with . - '
Java 8
String doesn't start or end with . - '
Submitted by
VS
-
3 years ago
2021-03-16 12:41
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Match all numbers
Java 8
Match all numbers from a string.
Submitted by
VS
-
3 years ago
2021-03-16 19:20
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Sınıfları Tek Tek seçme
Java 8
za
Submitted by
anonymous
-
3 years ago
2021-04-08 18:42
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
sim ou não
Java 8
expressão regular que só aceita s para sim e n para não
Submitted by
José Airton Neto
-
3 years ago
2021-04-10 23:28
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Match segmented paths with '\' and '/' escaped by '\'
Java 8
Match segmented paths with '\' and '/' escaped by '\'
Submitted by
anonymous
-
3 years ago
2021-05-18 14:43
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
css attribute validation
Java 8
css attribute validation
Submitted by
arnab
-
2 years ago
2021-06-24 18:00
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
标点
Java 8
匹配大部分标点
Submitted by
anonymous
-
2 years ago
2021-07-04 12:33
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
sfdgvsdgdfg
Java 8
dgfdgdf
Submitted by
anonymous
-
2 years ago
2021-07-07 21:18
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
yyyy/mm/dd
Java 8
^(((\d{3}[1-9]|\d{2}[1-9]\d|\d[1-9]\d{2}|[1-9]\d{3})(\/)(((0[13578]|1[02])(\/)(0[1-9]|[12]\d|3[01]))|((0[469]|11)(\/)(0[1-9]|[12]\d|30))|(02(\/)(0[1-9]|[1]\d|2[0-8]))))|(((\d{2})(0[48]|2468|13579)|((0[48]|2468|3579)00))(\/)02(\/)29))$ Match year/month/day, date format. E.g: 2021/08/25 [match] 2021/...
Submitted by
mayl0421
-
2 years ago
2021-08-25 12:40
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Match Windows filename in any path but only C: D: and F: drives
Java 8
Used for Service Discovery in vRealize Operations. Use case is a service that can be installed on any path, but we only want to discover and monitor services installed on standard production drives (C, D or F). Filename will always be the same.
Submitted by
Various
-
2 years ago
2021-10-02 18:55
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
11
Java 8
11
Submitted by
11
-
2 years ago
2021-10-15 07:02
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
IPv4 + TCP-Port
Java 8
This regex matches a IPv4 with a TCP Port (1-65535) Example: 192.168.0.69:1337 will match and have the groups: Group 1: 192.168.0.69 Group 2: 1337
Submitted by
SIMULATAN
-
2 years ago
2022-01-12 07:59
1
...
6
7
8
9
10
11
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