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
Most upvotes
Most downvotes
Highest Score
Lowest Score
Relevance
Filter by Flavor
PCRE2 (PHP >=7.3)
PCRE (PHP <7.3)
ECMAScript (JavaScript)
Python
Golang
Java 8
.NET 7.0 (C#)
Rust
Sponsors
There are currently no sponsors.
Become a sponsor today!
Community Patterns
Search among 100 community submitted regex patterns...
0
IPv4 address validation
PCRE2 (PHP >=7.3)
validation of IPv4 addresses
Submitted by
@unblog
-
3 years ago
0
IPv4 Address Validation Regex
Golang
IPv4 Address Validation Regex
Submitted by
ulgena
-
3 years ago
(Last modified 3 years ago)
0
ipv4 addresses
Python
Valid ip addreses
Submitted by
anonymous
-
3 years ago
-1
IP6 Validator Address (Simple)
PCRE2 (PHP >=7.3)
Short form validation of an IP6 address Less complex than other examples I have seen around
Submitted by
anonymous
-
3 years ago
(Last modified 3 years ago)
2
Good enough IPv6
PCRE (PHP <7.3)
A good enough approximation to IPv6 based on the examples at https://www.ibm.com/docs/en/ts3500-tape-library?topic=functionality-ipv4-ipv6-address-formats
Submitted by
mig8447
-
3 years ago
0
IPv4 input field validator
PCRE (PHP <7.3)
Use It for partial/complete IPv4 address input text checking. OK examples: 19 / 192. / 192.168.1 / 192.168.1.1 / 0.0.0.0 KO examples: 1A / 01 / 192.168..1
Submitted by
José Luis García Morillo
-
3 years ago
0
IP Address Validator
Java 8
Validates IPv4 Address for Java
Submitted by
krzysp, jpalvesloiola
-
3 years ago
0
IPV4 Grabber
PCRE2 (PHP >=7.3)
This expression grabs any IPV4 address from any text, any time, anywhere. Hopefully.
Submitted by
Ricardo Chica
-
3 years ago
(Last modified 3 years ago)
0
ipv4
PCRE2 (PHP >=7.3)
Find ipv4 addresses
Submitted by
anon
-
3 years ago
2
Pattern for usual email address
PCRE2 (PHP >=7.3)
Intentionally leaves out weird stuff such as IPV4 or IPV6 for the domain part and quoted usernames with invalid chars in the addressee part. Handles internationalized domains with soft validation (only structural matching) and blocks domain parts starting or ending with dashes or containing double d...
Submitted by
Victor Schröder
-
3 years ago
0
IPv4 Address +/- CIDR Slash Notation
Python
Grabs an IPv4 address, and if it has a CIDR slash notation, then grab that too.
Submitted by
dboyd42
-
4 years ago
(Last modified 2 years ago)
0
IPv4 non zero first and last octet
PCRE2 (PHP >=7.3)
When validating an IPv4 address I often have to reject devices that the first and last octet are 0.
Submitted by
John Cutburth
-
4 years ago
0
IPv4 address from text
Python
Found in here, stackoverflow url.
Submitted by
anonymous
-
4 years ago
2
RFC1918 - Private IPv4 addresses
PCRE2 (PHP >=7.3)
Validate a given IP v4 address against all three defined Private IPv4 Subnets as statet in RFC1918 10.0.0.0/8 172.16.0.0/20 192.168.0.0/16 ...
Submitted by
0100101101001
-
4 years ago
1
IPV4 Address Identificate
PCRE2 (PHP >=7.3)
Regex to identificate a IPV4 Address
Submitted by
Pablo Deyvid
-
4 years ago
0
Remove leading zeros (on the left) on ipv4 (ip v4)
ECMAScript (JavaScript)
Regex to remove leading (on the left) zeros on ipv4 (ip v4) Source: https://autohotkey.com/board/topic/15491-regex-to-strip-leading-zeroes-out-of-an-ip-address-octet/
Submitted by
YMP
-
4 years ago
0
IPv4 address
ECMAScript (JavaScript)
IPv4 address RegExp.
Submitted by
Sling
-
4 years ago
-1
ip4/ip6 capture
PCRE (PHP <7.3)
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...
Submitted by
Meryo
-
5 years ago
2
IPv4 with an undefined amount of 0 before every number
PCRE (PHP <7.3)
This regex matches every IPv4 address with or without 0s before every number. For example: 192.168.1.1 00000000000192.168.00000000000001.01
Submitted by
anonymous
-
5 years ago
0
IPv4 Valid RFC1918 Addresses
ECMAScript (JavaScript)
This will match valid IP addresses which are listed in RFC1918. 127.0.0.0 - 127.255.255.255 10.0.0.0 - 10.255.255.255 192.168.0.0 - 192.168.255.255 172.16.0.0 - 172.31.255.255
Submitted by
anonymous
-
5 years ago
1
2
3
4
5