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)
Match CLI argument to
Java 8
Matches argumetn to as: -t to -t= ...
Submitted by
rperez-torro
-
2 years ago
2022-01-18 17:18
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
java-test1
Java 8
java test string
Submitted by
anonymous
-
2 years ago
2022-01-22 09:12
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Hitech RTOZONE
Java 8
Checks the registration number's validity
Submitted by
Sid
-
2 years ago
2022-01-23 17:50
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Remove duplicate lines in sorted text
Java 8
See
Submitted by
@atnbueno
-
2 years ago
2022-01-30 14:36
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
if else parser part 1
Java 8
A basic if else parser. It automatically captures the if equation and the result. It supports if, elif, and else statements. Note: for elif statements part 2 is required. This is because Regex can't use one group to capture multiple elif statements. Part 2 can be found here
Submitted by
Rubeste
-
2 years ago
2022-02-06 21:34
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
if else parser part 2
Java 8
This is part 2 of my if else parser. Part 2 is only needed for elif statements. Note: From the elif result from part 1 add a #end to close the statement. I might change it a bit in the future so this isn't needed. ...
Submitted by
Rubeste
-
2 years ago
2022-02-06 21:33
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
ISO 3166-1 alpha-3
Java 8
ISO 3166-1 alpha-3 countries for validation
Submitted by
anonymous
-
2 years ago
2022-02-08 09:57
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Verificar caracter repetido
Java 8
Verificar caracter repetido
Submitted by
anonymous
-
2 years ago
2022-03-03 02:53
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Match any pattern abc.def.***.uvw.xyz hackerRank
Java 8
This regex matches any pattern like in the title. HackerRank challenge modified.
Submitted by
anonymous
-
2 years ago
2022-03-17 19:14
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
OS正则表达式
Java 8
zzx
Submitted by
zzx
-
a year ago
2022-04-20 12:38
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
DB
Java 8
DB
Submitted by
DB
-
a year ago
2022-04-20 12:43
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
括号匹配
Java 8
(\[]\])|(【】)|(())|(\(\))
Submitted by
nasion
-
a year ago
2022-04-21 11:27
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
IP Address
Java 8
IP Address RegEx
Submitted by
anonymous
-
a year ago
2022-04-24 15:40
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
匹配#结尾的电话号码和手机
Java 8
匹配#结尾的电话号码和手机
Submitted by
Leo
-
a year ago
2022-04-26 03:23
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
#结尾的电话匹配
Java 8
#结尾的电话匹配
Submitted by
anonymous
-
a year ago
2022-04-26 14:20
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
判断是否有非法字符(合法字符为数字+-# 以及{"0":0, "1":1}所包含的符号)
Java 8
判断是否有非法字符(合法字符为数字+-# |以及{"0":0, "1":1}所包含的符号) 能捕获的:包含汉字、英文字符、部分分割符(;、/)、各种括号的电话
Submitted by
Jiajian Ye
-
a year ago
2022-04-26 14:37
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Username Middle name Surname regex matcher
Java 8
Username Middle name Surname regex matcher
Submitted by
Nikola
-
a year ago
2022-05-03 16:35
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Something...
Java 8
Look for all entries of a country on a list that can have repeated values
Submitted by
anonymous
-
a year ago
2022-05-06 10:59
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
CDATA Matcher
Java 8
Matches CDATA sections while disallowing nesting
Submitted by
anonymous
-
a year ago
2022-05-16 16:06
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Length > 4 chars
Java 8
Accounts for any character 4 times and not 'null'
Submitted by
anonymous
-
a year ago
2022-06-01 14:12
1
...
3
4
5
6
7
8
9
...
11
test
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
Java 8
"
[
1
-
9
]
+
\.
+
[
0
-
9
]
+
(
e
\+
|
E
\+
)
[
2
-
9
]
+
[
0
-
9
]
+
"
gm
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
7 months ago
2023-03-02 05:36