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
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 7.0 (C#)
Rust
Sponsors
Community Patterns
Search among 17,580 community submitted regex patterns...
0
IPv6 address validation
PCRE2 (PHP >=7.3)
address validation from the first two segments of an IPv6 address
Submitted by
@unblog
-
a year ago
0
IPv4 address validation
PCRE2 (PHP >=7.3)
validation of IPv4 addresses
Submitted by
@unblog
-
a year ago
0
Spring Boot default log parser regex
Python
Parses default spring boot logs and capture the following groups: i. ISO Timestamp, ii. Log Level, iii. Process ID (PID), iv. Thread name, v. Logger name, and vi. Log message
Submitted by
Snehangshu Bhattacharya
-
a year ago
0
regex for gsub (combine value)
PCRE2 (PHP >=7.3)
xx
Submitted by
anonymous
-
a year ago
0
Email teste
ECMAScript (JavaScript)
Email teste
Submitted by
@rafaelteruyuki
-
a year ago
0
Grupos
PCRE2 (PHP >=7.3)
grupos
Submitted by
anonymous
-
a year ago
0
Function arguments regex
PCRE (PHP <7.3)
A simple regex to match individual arguments of a function.
Submitted by
anonymous
-
a year ago
0
parse named values
PCRE2 (PHP >=7.3)
ok
Submitted by
anonymous
-
a year ago
0
sentence with colon regex
Python
[\S\w]+\s?:\s?[\S▁]+
Submitted by
wb
-
a year ago
0
Strict URL Validation - 2
PCRE2 (PHP >=7.3)
https://regex101.com/ https://www.cloudways.com/blog/prevent-laravel-xss-exploits/ https://cloudways.com
Submitted by
Adwin
-
a year ago
0
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
-
a year ago
(Last modified a year ago)
0
Name RegEx
Python
Separate first and last names. Capitalization matters. Ignore middle initials but allow middle names. Multiple last names may be mistaken for middle names. Groups could be changed to capture middle names separately, middle initials, etc.
Submitted by
anonymous
-
a year ago
0
regex to prevent special charecters and allow white spaces
PCRE2 (PHP >=7.3)
regex to prevent special charecters and allow white spaces for your string
Submitted by
anonymous
-
a year ago
0
Get ip address (only ipv6) Validator
.NET 7.0 (C#)
Get ip address (only ipv6) Validator
Submitted by
Mr.Tang
-
a year ago
(Last modified a year ago)
0
match html reg
Python
match html reg
Submitted by
anonymous
-
a year ago
0
Checking time for AM/PM format
PCRE2 (PHP >=7.3)
Support both capital and small letters, could be 01:00AM of 1:00AM
Submitted by
VS
-
a year ago
0
Get ip address (only ipv4) Validator
.NET 7.0 (C#)
Get ip address (only ipv4) Validator
Submitted by
Mr.Tang
-
a year ago
(Last modified a year ago)
0
redirect old slugs to new
PCRE2 (PHP >=7.3)
redirect old slugs to new
Submitted by
anonymous
-
a year ago
0
Hightlight pipe regex
PCRE2 (PHP >=7.3)
A regex to find a searchQuery inside html But not: inside tag inside tag indide href of tag
Submitted by
Robair
-
a year ago
0
date range
ECMAScript (JavaScript)
.
Submitted by
anonymous
-
a year ago
1
...
852
853
854
855
856
...
879
ipv6 Validation
5
Regular Expression
PCRE (PHP <7.3)
/
^
(
(
(
[
0
-
9A
-
Fa
-
f
]
{1,4}
:
){1,6}
:
)
|
(
(
[
0
-
9A
-
Fa
-
f
]
{1,4}
:
){7}
)
)
(
[
0
-
9A
-
Fa
-
f
]
{1,4}
)
$
/
Open regex in editor
Description
Handle all condition for ipv6 example:
FE80::8329
FE80::FFFF:8329
FE80::B3FF:FFFF:8329
FE80::0202:B3FF:FFFF:8329
FE80::0000:0202:B3FF:FFFF:8329
FE80::0000:0000:0202:B3FF:FFFF:8329
FE80:0000:0000:0000:0202:B3FF:FFFF:8329
Submitted by
Lim Yew Teck, Nicholas
-
9 years ago