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 13,880 community submitted regex patterns...
1
IP Address
Java 8
(^([0-9]{2,3}.)([0-9]{2,3}.)([0-9]{2,3}.)([0-9]{2,3})$)
Submitted by
anonymous
-
2 years ago
0
CRON SECONDS MINUTES
PCRE2 (PHP >=7.3)
EXPRESION FOR CRON SECONDS
Submitted by
JULIAN ANDRES CEDEÑO MORA
-
2 years ago
0
Điểm
PCRE2 (PHP >=7.3)
Điểm
Submitted by
anonymous
-
2 years ago
0
Tuổi
PCRE2 (PHP >=7.3)
Tuổi
Submitted by
anonymous
-
2 years ago
0
Họ tên VN
PCRE2 (PHP >=7.3)
Họ Tên VN
Submitted by
anonymous
-
2 years ago
0
US Number (Match) [freeCodeCamp]
PCRE2 (PHP >=7.3)
It's easy to think about it section by section.
Submitted by
Alex
-
2 years ago
0
匹配错误的颜色表达式
PCRE2 (PHP >=7.3)
匹配错误的颜色表达式
Submitted by
anonymous
-
2 years ago
0
Regex nem TV
PCRE2 (PHP >=7.3)
unicode
Submitted by
anonymous
-
2 years ago
0
Timezone Offsets
PCRE2 (PHP >=7.3)
A regular expression for timezones offsets as of July 29, 2022, see https://en.wikipedia.org/wiki/List_of_UTC_offsets.
Submitted by
Hidayatullah Ahsan
-
2 years ago
0
Intervelead 2 of 5 custas
PCRE (PHP <7.3)
Intervelead 2 of 5 custas
Submitted by
anonymous
-
2 years ago
0
Code Block Splitting
Python
Useful for getting codeblock from a text
Submitted by
anonymous
-
2 years ago
0
regex check name
PCRE2 (PHP >=7.3)
kiểm tra tên có hợp lệ không
Submitted by
anonymous
-
2 years ago
(Last modified 2 years ago)
0
Regex check SĐT
PCRE2 (PHP >=7.3)
có một số 0 ở đầu có 10 hoặc 11 số
Submitted by
anonymous
-
2 years ago
0
Regex Scores
PCRE2 (PHP >=7.3)
điểm từ 0-10 nhập được 1 và 2 chữ số thập phân
Submitted by
anonymous
-
2 years ago
0
PHP: find comments without a blank line before
PCRE2 (PHP >=7.3)
I'd like to have a blank line before a line with a comment in PHP
Submitted by
anonymous
-
2 years ago
0
Multiple MAC Address Validation
PCRE2 (PHP >=7.3)
Used to validate the list of MAC addresses is formatted correctly. The list of MACs can use ":", "-", or "." as a separator: Example with a "-" separator: 00-11-22-33-44-55 Example with a ":" separator: 00:11:22:33:44:55 ...
Submitted by
Joel Jordan
-
2 years ago
0
Validacion de solo letras
PCRE2 (PHP >=7.3)
Expresion que excluye numeros
Submitted by
anonymous
-
2 years ago
0
Validar Correo electronico
PCRE2 (PHP >=7.3)
Expresion regular que valida que un correo electrónico tenga el fomato correcto
Submitted by
anonymous
-
2 years ago
0
Zarf Package Variable Check
PCRE2 (PHP >=7.3)
Checks to make sure that there are no package variables inside of the given string.
Submitted by
anonymous
-
2 years ago
0
vehicle-registration
PCRE2 (PHP >=7.3)
German vehicle registration signs
Submitted by
musemind
-
2 years ago
1
...
76
77
78
79
80
...
694
ip4/ip6 capture
-1
Regular Expression
PCRE (PHP <7.3)
/
(
(?'ip4'
(
\d
{1,3}
\.
){3}
\d
{1,3}
)
|
(?'ip6'
(
(
[
0
-
9a
-
f
]
{1,4}
)?
:
){7}
(
[
0
-
9a
-
f
]
{4}
)?
)
)
/
gm
Open regex in editor
Description
regex to capture ip4/ip6 addresses with named capture groups. The Following features are included:
PHP and python support
ip4 byte size check (ensures byte can't exceed 255)
ip6 checks if hex characters are valid
uses a negative lookbehind to check if the ip is a word on its own
named capture groups to facilitate extraction of either ip4 or ip6
Submitted by
Meryo
-
3 years ago