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...
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Check Email Validity
Java 8
Regular expression to check the email syntax validity. Certainly requires improvement, but it's a good basis to work from. Work with Java and JavaScript.
Submitted by
Alain TOMASIAN <alain.tomasian@kaptus.fr>
-
23 days ago
2023-11-15 10:54
(Last modified 23 days ago)
2023-11-15 17:35
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
verifyIPV6
Java 8
verificare indirizzo IPV6 (regole base)
Submitted by
Luigi Piccinni
-
18 days ago
2023-11-20 15:18
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
文件名称验证
Java 8
操作系统文件名称验证,参考了Windows,Linux,Mac
Submitted by
腾龙问天
-
7 days ago
2023-12-01 16:03
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
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Rick Roll
Java 8
Matches chorus of Never Going to Give You Up
Submitted by
Stephen Battista
-
2 years ago
2022-02-01 19:56
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
2
3
4
5
...
11
YouTube link parser
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
PCRE2 (PHP >=7.3)
/
^
(
https:
\/\/
youtu
\.
be
\/
|
http:
\/\/
www
\.
youtube
\.
com
\/
watch
\?
v=
)
.
*
$
/
gm
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
6 months ago
2023-05-25 20:47
(Last modified 6 months ago)
2023-05-25 20:49