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...
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Android Package Validation - Java Regex
Java 8
Note: replace the "\." with "\\." if you paste this on your java. The regex will match if the package name is valid. example: my.new.hello.world.app Supports: a-z 0-9 and underscore Supports multiple dots
Submitted by
dlv_dls2
-
2 years ago
2022-02-06 06:30
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
匹配中英文括号
Java 8
可以用来替换企业名称中的中英文括号 eg: 阿里巴巴(中国)股份 阿里巴巴(中国)股份
Submitted by
tuan_luo
-
2 years ago
2022-02-10 06:46
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Matching build file names
Java 8
Matches various versions of build file filenames from our jenkins builds
Submitted by
Sean Furrh
-
2 years ago
2022-02-16 22:31
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Facebook IDs
Java 8
A general regular expression that uses the keywords 'Facebook' and 'id' to collect strings that contain Facebook IDs. Also, added an additional condition to where if there's a long numeric string it will be match a group given that, 'Facebook' is within the string. This is a special use-case and can...
Submitted by
loganmcampbell
-
2 years ago
2022-03-16 19:27
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
9 Digit SSN String
Java 8
If for whatever reason there isn't a delimiter within your data to for storing your SSNs you should be able to use this regular expression to capture 9 digit strings within data. You might need to add special keywords to filter out false positives.
Submitted by
loganmcampbell
-
2 years ago
2022-03-16 19:30
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Specific Year Dates (Regular Expression)
Java 8
Here's a regular expression to handle a specific year in the different forms of dates: YYYY-MM-DD DD-MM-YYYY MM-DD-YYYY ...
Submitted by
loganmcampbell
-
2 years ago
2022-03-16 19:33
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Chercher un Prénom ou un Nom
.NET (C#)
no description available
Submitted by
anonymous
-
7 years ago
2016-09-07 06:13
(Last modified 5 months ago)
2023-07-20 05:13
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)
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
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
-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
-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
-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
-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
-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
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Fund - Arriving in Kathmandu
Java 8
Simple regex for Softuni
Submitted by
anonymous
-
3 years ago
2021-04-02 11:20
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
笔试
Java 8
笔试字符串检查regex
Submitted by
bgst009
-
3 years ago
2021-04-04 13:16
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Alien Registration Number
Java 8
Alien Registration Number
Submitted by
anonymous
-
3 years ago
2021-04-19 23:56
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
({( ?){ ( ?)(.*) ( ?)}( ?)})
Java 8
{ { I\'m so {cool}, I\'m nested }} I\'m neither { I\'m just boring normal braces }
Submitted by
anonymous
-
3 years ago
2021-05-01 13:13
1
2
3
4
5
6
7
...
16
CAN regex
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
.NET (C#)
@"
^
(?<mID>
24
)
(?<moduleID>
[
1
-
6
]
)
(
(
(?<dlc>
4
)
(?<payload>
[
0
-
9A
-
F
]
{8}
)
)
|
(
(?<dlc>
7
)
(?<payload>
[
0
-
9A
-
F
]
{14}
)
)
|
(
(?<dlc>
1
)
(?<payload>
[
0
-
9A
-
F
]
{2}
)
)
|
(
(?<dlc>
3
)
(?<payload>
[
0
-
9A
-
F
]
{6}
)
)
)
$
"
gm
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
a year ago
2022-11-02 15:00