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)
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
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
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Regular expression for capturing dates and date ranges.
Java 8
A proof of concept regex that captures dates and date ranges with a variety of separators. Works with both DMY and MDY, and if one is not needed, it can be easily deleted from the regex. The full variety of months needs to be implemented by the programmer themselves since developing it in regex101...
Submitted by
Matey Krastev
-
2 years ago
2022-04-07 20:19
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
IP Address
Java 8
(^([0-9]{2,3}.)([0-9]{2,3}.)([0-9]{2,3}.)([0-9]{2,3})$)
Submitted by
anonymous
-
a year ago
2022-08-02 08:40
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
phone number middle number parsing
Java 8
middle number parsing regex
Submitted by
anonymous
-
a year ago
2022-09-26 05:32
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
AsciiDoc delimited block example
Java 8
https://docs.asciidoctor.org/asciidoc/latest/blocks/delimited/
Submitted by
aisbergde
-
a year ago
2022-10-10 10:07
(Last modified a year ago)
2022-10-10 10:08
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Replace ^ with Math.pow function. Not made to work with braces.
Java 8
Replaces ^ with Math.pow function call. This assumes all braces have been combined first. If you need help with the combination, I got you—try this Python algorithm: def evaluate_braces(expr): """Recursively evaluate expressions within braces""" Check if expression contains braces if '(' in...
Submitted by
Glitchii - https://github.com/Glitchii
-
9 months ago
2023-03-15 22:00
(Last modified 9 months ago)
2023-03-15 22:30
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Email finder
Java 8
Matches with the valid email addresses.
Submitted by
anonymous
-
8 months ago
2023-03-27 23:58
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
json value extract
Java 8
json value extract
Submitted by
anonymous
-
8 months ago
2023-04-01 02:24
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Türkiye Araç Plaka Regexi - Türkiye Car Plate Regex
Java 8
Gist link for Java : https://gist.github.com/Gencturk-m/9962ce1e1dcf4dd9307062e34b023183 Aşağıdaki yapıdaki plakaları kabul eder: "01-81 X 9999", "01-81 X 99999"...
Submitted by
Melih Gençtürk - https://github.com/gencturk-m
-
7 months ago
2023-04-24 20:44
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
html <Title>
Java 8
htnle
Submitted by
erichologist
-
4 months ago
2023-08-09 16:02
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Extract any link or endpoint
Java 8
Extract any link or endpoint from 1- HTML page source 2- HTTP responses 3- JS files Feel free to contact me on Telegram https://t.me/c4ir0 if you:...
Submitted by
Cairo
-
3 months ago
2023-08-25 22:32
(Last modified 3 months ago)
2023-08-27 08:35
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Match many cases of 8601
Java 8
This is still a working in progress Need to do Unit Tests and search for more use cases Match partial cases of 8601 such as: missing offset missing time...
Submitted by
jpmand
-
3 months ago
2023-08-31 11:08
(Last modified 3 months ago)
2023-08-31 14:32
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
CSV
Java 8
Crude CSV regex to split only by characters surrounded by non-whitespace characters. Ignore that it dosen't highlight all of the other commas in the editor. If you select the g regex flag it will properly show here, but not work in Java. Credit to @merosity (Merosity#0135) on Discord!
Submitted by
Merosity, regice202
-
3 months ago
2023-09-09 10:06
1
...
6
7
8
9
10
11
ip address
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
Java 8
"
(
[
01
]
?
\d\d
?
|
2
[
0
-
4
]
\d
|
25
[
0
-
5
]
)
\.
(
[
01
]
?
\d\d
?
|
2
[
0
-
4
]
\d
|
25
[
0
-
5
]
)
\.
(
[
01
]
?
\d\d
?
|
2
[
0
-
4
]
\d
|
25
[
0
-
5
]
)
\.
(
[
01
]
?
\d\d
?
|
2
[
0
-
4
]
\d
|
25
[
0
-
5
]
)
"
Open regex in editor
Description
Loading markdown...
Submitted by
shyam
-
9 months ago
2023-03-13 14:07