Please enable JavaScript to use this web application.
Regular
Expressions
101
Social
Donate
Info
Regex Editor
Community Patterns
Account
Regex Quiz
Settings
Order By
Most Recent
Most upvotes
Most downvotes
Highest Score
Lowest Score
Filter by Flavor
PCRE2 (PHP >=7.3)
PCRE (PHP <7.3)
ECMAScript (JavaScript)
Python
Golang
Java 8
.NET 7.0 (C#)
Rust
Sponsors
There are currently no sponsors.
Become a sponsor today!
Community Patterns
Search among 240 community submitted regex patterns...
0
Mpe
Java 8
coda test
Submitted by
anonymous
-
3 years ago
0
Match CLI argument to
Java 8
Matches argumetn to as: -t to -t= ...
Submitted by
rperez-torro
-
3 years ago
0
java-test1
Java 8
java test string
Submitted by
anonymous
-
3 years ago
0
Hitech RTOZONE
Java 8
Checks the registration number's validity
Submitted by
Sid
-
3 years ago
0
Remove duplicate lines in sorted text
Java 8
See
Submitted by
@atnbueno
-
3 years ago
0
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
-
3 years ago
0
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
-
3 years ago
0
ISO 3166-1 alpha-3
Java 8
ISO 3166-1 alpha-3 countries for validation
Submitted by
anonymous
-
3 years ago
0
Verificar caracter repetido
Java 8
Verificar caracter repetido
Submitted by
anonymous
-
3 years ago
0
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
-
3 years ago
0
OS正则表达式
Java 8
zzx
Submitted by
zzx
-
3 years ago
0
DB
Java 8
DB
Submitted by
DB
-
3 years ago
0
括号匹配
Java 8
(\[]\])|(【】)|(())|(\(\))
Submitted by
nasion
-
3 years ago
0
IP Address
Java 8
IP Address RegEx
Submitted by
anonymous
-
3 years ago
0
匹配#结尾的电话号码和手机
Java 8
匹配#结尾的电话号码和手机
Submitted by
Leo
-
3 years ago
0
#结尾的电话匹配
Java 8
#结尾的电话匹配
Submitted by
anonymous
-
3 years ago
0
判断是否有非法字符(合法字符为数字+-# 以及{"0":0, "1":1}所包含的符号)
Java 8
判断是否有非法字符(合法字符为数字+-# |以及{"0":0, "1":1}所包含的符号) 能捕获的:包含汉字、英文字符、部分分割符(;、/)、各种括号的电话
Submitted by
Jiajian Ye
-
3 years ago
0
Username Middle name Surname regex matcher
Java 8
Username Middle name Surname regex matcher
Submitted by
Nikola
-
3 years ago
0
Something...
Java 8
Look for all entries of a country on a list that can have repeated values
Submitted by
anonymous
-
3 years ago
0
CDATA Matcher
Java 8
Matches CDATA sections while disallowing nesting
Submitted by
anonymous
-
3 years ago
1
...
5
6
7
8
9
...
12
Community Library Entry
2
Regular Expression
.NET 7.0 (C#)
@"
^
(?>
(?'protocol'
[
a
-
zA
-
Z
]
+
)
://
)?
(?'domain'
[
a
-
zA
-
Z0
-
9.
\-
_
]
*
)?
(?>
:
(?'port'
\d
{1,5}
)
)?
/
(?'path'
[
a
-
zA
-
Z0
-
9_
\-
%
]
+
)
(?:
(?>
\?
(?'query'
[
a
-
zA
-
Z0
-
9_
\-
=&%
]
+
)
)
(
)
|
(?>
#
(?'anchor'
[
a
-
zA
-
Z0
-
9_
\-
%
]
+
)
)
(
)
){0,2}
$
"
gm
Open regex in editor
Description
Matches protocol, domain, port, path, query and anchor as named capturing groups.
Submitted by
Jonathan
-
a year ago
(Last modified a year ago)