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...
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
OmegaT exercise: separators in figures (en -> es)
Java 8
Replace thousand and decimal separators
Submitted by
anonymous
-
3 years ago
2021-05-09 18:18
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
OmegaT exercises
Java 8
OmegaT exercises
Submitted by
msoutopico
-
3 years ago
2021-05-09 18:23
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regex to replace path in apache rewrite
Java 8
This regex convert following text: /research/the-123s-of-school-choice/ INTO: /research-library/?report=the-123s-of-school-choice
Submitted by
Suman Maharjan
-
3 years ago
2021-05-15 05:30
(Last modified 3 years ago)
2021-05-15 05:32
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Email Regex
Java 8
Regex to capture email from Text
Submitted by
Suman Maharjan
-
3 years ago
2021-05-15 07:48
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regex to capture AlphaNumeric String of 7 or 11 length(Must contain at least one Alphabet and Must contain at least one Numeric)
Java 8
Regex to capture AlphaNumeric String Length should be 7 or 11 Must contain at least one Alphabet Must contain at least one Numeric
Submitted by
Suman Maharjan
-
3 years ago
2021-05-21 07:54
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
my regex
Java 8
test
Submitted by
anonymous
-
3 years ago
2021-05-23 03:15
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
MBI Format
Java 8
Medicare Beneficiary Identifier (MBI) Format https://www.cms.gov/medicare/new-medicare-card/understanding-the-mbi-with-format.pdf
Submitted by
Chee Cheng
-
3 years ago
2021-05-30 05:30
(Last modified 3 years ago)
2021-05-30 05:38
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
http{s} non-capturing regex kotlin
Java 8
This is a kotlin implementation of a http{s} protocal check for when routing
Submitted by
yugely
-
3 years ago
2021-05-31 06:57
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Kotlin FTP Proto Check
Java 8
ftpProtoCheck
Submitted by
anonymous
-
3 years ago
2021-05-31 07:03
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Therapi param type name fix
Java 8
This regex extracts only the param type and omits any prefixed annotations included in the name.
Submitted by
anonymous
-
2 years ago
2021-06-03 21:57
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Password in java
Java 8
password in java
Submitted by
anonymous
-
2 years ago
2021-06-04 04:41
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Minecraft Color Code Regex
Java 8
Easy to remove minecraft color codes from strings.
Submitted by
Saniee
-
2 years ago
2021-06-05 11:01
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Pull Words from Sentence
Java 8
Simple little regex to pull words out of a sentence. Obviously \w+ exists, but this accounts for a few corner cases that would normally be missed. Things like let's or ten-four good-buddy.
Submitted by
Tony B.
-
2 years ago
2021-06-05 20:27
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
MaskTDCView4D
Java 8
permite enmascarar la cadena de caracteres y deja mostrar los ultimos 4 digitos
Submitted by
anonymous
-
2 years ago
2021-06-10 03:03
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
primerCaracter
Java 8
obtiene el primer caracter de cada palabra luego de un espacio
Submitted by
anonymous
-
2 years ago
2021-06-10 18:27
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regex 1
Java 8
Розділення речень в тексті
Submitted by
DJI
-
2 years ago
2021-07-21 12:41
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
File information modify
Java 8
file_(name)|file_(path)|file_(size)|file_(date) - searching (regex rule) file_info, name, path, size, date - keeping (result)
Submitted by
Dorival Trindade
-
2 years ago
2021-08-03 19:01
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
email with cyrillic
Java 8
email with cyrillic
Submitted by
Mpchest
-
2 years ago
2021-08-04 14:28
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
select
Java 8
select\s+(\|((\w+(\.\w+)?)+(\s?,\s?\w+(\.\w+)?))|((\w+\(|(\w+\.\w+)?\))(\s+\,\s+)?)+)\s+from\s+(\w+(\s?,\s?\w+)*\;?)(\s+((\w+\s+join)\s+(\w+(\.\w)?\s+on\s+(\w+(\.\w+)?\s+=\s+\w+(\.\w+)?)?)(\s+,\s+)?)+)?(\s+((limit\s+(\w+)?\s?(\,\w+\;)?)|((where)?\s+?(+\s?;))))?
Submitted by
anonymous
-
2 years ago
2021-08-08 17:51
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regex to verify a java method
Java 8
Verifies java methods
Submitted by
Marco Galindo
-
2 years ago
2021-08-16 17:40
1
2
3
4
5
6
7
8
...
16
Get ip address (only ipv4) Validator
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
.NET (C#)
@"
(?:
(?:
[
a
-
f0
-
9
]
*
)?
:
){1,7}
[
a
-
f0
-
9
]
*
|
(
25
[
0
-
5
]
|
2
[
0
-
4
]
[
0
-
9
]
|
[
01
]
?
[
0
-
9
]
[
0
-
9
]
?
)
\.
(
25
[
0
-
5
]
|
2
[
0
-
4
]
[
0
-
9
]
|
[
01
]
?
[
0
-
9
]
[
0
-
9
]
?
)
\.
(
25
[
0
-
5
]
|
2
[
0
-
4
]
[
0
-
9
]
|
[
01
]
?
[
0
-
9
]
[
0
-
9
]
?
)
\.
(
25
[
0
-
5
]
|
2
[
0
-
4
]
[
0
-
9
]
|
[
01
]
?
[
0
-
9
]
[
0
-
9
]
?
)
"
gmi
Open regex in editor
Description
Loading markdown...
Submitted by
Mr.Tang
-
9 months ago
2023-02-21 12:10
(Last modified 9 months ago)
2023-02-21 12:15