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 9,440 community submitted regex patterns...
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Replace letters in email address
PCRE (PHP <7.3)
Replace letters in email address but left the first and last letter before and after @
Submitted by
Kaibo
-
9 months ago
2023-03-16 16:00
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
tas-branch-validation
Java 8
tas-branch-validation
Submitted by
doron-hafner
-
9 months ago
2023-03-16 10:07
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
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Remove all html from string
PCRE (PHP <7.3)
Remove all tags and special character such as
Submitted by
enrico mosca
-
9 months ago
2023-03-14 11:33
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
ip address
Java 8
ip address regex
Submitted by
shyam
-
9 months ago
2023-03-13 14:07
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Titulo da expressao
Java 8
\w
Submitted by
anonymous
-
9 months ago
2023-03-08 03:15
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Closes properly self-closing tags in HTML
PCRE (PHP <7.3)
In an HTML will replace all auto-closed tags (/>) with a proper tag closing. It works even if the tag has a closing sign (>) inside an attribute.
Submitted by
nabab
-
9 months ago
2023-03-06 10:28
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Database datatype check
Java 8
Database data type determination and extraction. Example: varchar(20) varchar2(20) number(20,3) timestamp...
Submitted by
anonymous
-
9 months ago
2023-03-06 08:15
-2
0 upvotes, 2 downvotes (score 0%) (You must be signed in to vote)
PHP Serialization String Validator
PCRE (PHP <7.3)
PHP serialize / unserialize __sleep __wakeup __serialize __unserialize
Submitted by
Abdullah Pazarbasi
-
9 months ago
2023-03-03 06:10
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
test
Java 8
test
Submitted by
anonymous
-
9 months ago
2023-03-02 05:36
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Valid date (DD-MM-YYYY) from 1900 to 2099
Java 8
Valid date (DD-MM-YYYY) from 1900 to 2099
Submitted by
Nevix-Sama
-
9 months ago
2023-02-24 19:28
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
简单日志匹配
Java 8
普通日志匹配, 匹配出字段: [time, level, logClass, content]
Submitted by
qinxike
-
9 months ago
2023-02-24 07:06
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Get anything between parentheses
PCRE (PHP <7.3)
Use to get any character, digit or space between parentheses
Submitted by
Vini Pereira
-
10 months ago
2023-02-23 03:07
-1
0 upvotes, 1 downvotes (score 0%) (You must be signed in to vote)
alluse
PCRE (PHP <7.3)
/^(?P0|[1-9]\d)\.(?P0|[1-9]\d)\.(?P0|[1-9]\d)(?:-(?P(?:0|[1-9]\d|\da-zA-Z-)(?:\.(?:0|[1-9]\d|\da-zA-Z-))))?(?:\+(?P[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/gm
Submitted by
alluse
-
10 months ago
2023-02-22 18:30
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
match name and surname in a name.surname@domain.com email.
Java 8
This will match any words that show up before the @ sign in an email. Digits, dots, commasz and other special characters are ignored.
Submitted by
WojciechW
-
10 months ago
2023-02-22 14:20
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
CPF Number Repetition
Java 8
It matches CPF (Cadastro de Pessoa Física) with all digits as the same number. Since CPF consists in a pattern ###.###.###-##, or ###########, and # being a single digit, this document cannot have all the 11 (eleven) digits as the same number. Therefore 000.000.000.000-00 would not be an example o...
Submitted by
TheRockSaysOP
-
10 months ago
2023-02-18 17:28
(Last modified 10 months ago)
2023-02-18 17:40
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Function arguments regex
PCRE (PHP <7.3)
A simple regex to match individual arguments of a function.
Submitted by
anonymous
-
10 months ago
2023-02-17 20:14
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
elasticsearch exception explain regex
Java 8
throw elasticsearch exception logger info, find exception type and reason field
Submitted by
jason
-
10 months ago
2023-02-15 07:29
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
semantic tags
PCRE (PHP <7.3)
semantic tags
Submitted by
anonymous
-
10 months ago
2023-02-14 09:45
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Password
Java 8
Password
Submitted by
Mohammed Elshaboury
-
10 months ago
2023-02-13 13:54
1
2
3
4
5
6
7
...
472
Replace ^ with Math.pow function. Not made to work with braces.
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Regular Expression
Java 8
"
(
-
?
[
.0
-
9
]
+
)
\^
(
-
?
[
.0
-
9
]
+
)
"
gm
Open regex in editor
Description
Loading markdown...
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