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)
Other segment
Java 8
Other segments
Submitted by
Lufram
-
6 months ago
2023-03-24 13:07
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Take segments to string
Java 8
Take segments to string
Submitted by
Lufram
-
6 months ago
2023-03-24 13:05
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Regex Card Name - Custom
.NET (C#)
custom validation for card name with custom validation. only allow these characters Alphanumeric (A-Z a-z0-9) Special Characters (#&+()/)
Submitted by
anonymous
-
6 months ago
2023-03-24 08:53
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Лямбды для OneScript
.NET (C#)
лямбды для проекта https://github.com/sfaqer/lambdas
Submitted by
anonymous
-
6 months ago
2023-03-23 12:32
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Aus Mobile number
.NET (C#)
validates against multiple common formats
Submitted by
anonymous
-
6 months ago
2023-03-20 06:22
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Kyivstar phone number
Java 8
Kyivstar phone number
Submitted by
milka_vlad
-
6 months ago
2023-03-19 17:11
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
-
6 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
-
6 months ago
2023-03-15 22:00
(Last modified 6 months ago)
2023-03-15 22:30
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
ip address
Java 8
ip address regex
Submitted by
shyam
-
6 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
-
7 months ago
2023-03-08 03:15
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
-
7 months ago
2023-03-06 08:15
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Apigee example SQL injection detection regex
Java 8
Source
Submitted by
anonymous
-
7 months ago
2023-03-03 05:50
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
test
Java 8
test
Submitted by
anonymous
-
7 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
-
7 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
-
7 months ago
2023-02-24 07:06
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
-
7 months ago
2023-02-22 14:20
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Get ip address (only ipv4) Validator
.NET (C#)
Get ip address (only ipv4) Validator
Submitted by
Mr.Tang
-
7 months ago
2023-02-21 12:10
(Last modified 7 months ago)
2023-02-21 12:15
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Get ip address (only ipv6) Validator
.NET (C#)
Get ip address (only ipv6) Validator
Submitted by
Mr.Tang
-
7 months ago
2023-02-20 19:35
(Last modified 7 months ago)
2023-02-21 12:08
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Get ip address (only ipv4) Validator
.NET (C#)
Get ip address (only ipv4) Validator
Submitted by
Mr.Tang
-
7 months ago
2023-02-20 18:43
(Last modified 7 months ago)
2023-02-21 12:05
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
-
7 months ago
2023-02-18 17:28
(Last modified 7 months ago)
2023-02-18 17:40
1
2
3
4
5
6
...
16
CAN regex
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
.NET (C#)
@"
^
(?<mID>
24
)
(?<moduleID>
[
1
-
6
]
)
(
(
(?<dlc>
4
)
(?<payload>
[
0
-
9A
-
F
]
{8}
)
)
|
(
(?<dlc>
7
)
(?<payload>
[
0
-
9A
-
F
]
{14}
)
)
|
(
(?<dlc>
1
)
(?<payload>
[
0
-
9A
-
F
]
{2}
)
)
|
(
(?<dlc>
3
)
(?<payload>
[
0
-
9A
-
F
]
{6}
)
)
)
$
"
gm
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
a year ago
2022-11-02 15:00