REGEX LIBRARY
417 production-tested patterns. ReDoS-verified. Multi-engine.
IPv4 Address (Strict 0–255)
Validates a complete IPv4 address, strictly enforcing that each octet is between 0 and 255. Rejects leading zeros, out-of-range values, and malformed syntax.
IPv4 with CIDR Notation
Matches an IPv4 address in CIDR block notation (e.g. 192.168.1.0/24). Validates both the address portion (strict 0–255) and the prefix length (0–32).
IPv4 Private Address Ranges
Matches only RFC 1918 private IPv4 addresses: 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16.
IPv4 Loopback Address
Matches any address in the 127.0.0.0/8 loopback block (127.x.x.x), not just 127.0.0.1.
IPv4 Multicast Address
Matches IPv4 multicast addresses in the 224.0.0.0/4 range (224.x.x.x through 239.x.x.x).
IPv4 Link-Local Address
Matches APIPA (Automatic Private IP Addressing) link-local addresses in the 169.254.0.0/16 range.
IPv4 Address with Port
Matches an IPv4 address followed by an optional port number (1–65535), separated by a colon.
IPv4 in URL Context (http/https)
Matches an HTTP or HTTPS URL where the host is an IPv4 address, with optional port and path.
IPv4 Octet Extraction (Capture Groups)
Captures each of the four octets of an IPv4 address into named or numbered groups for programmatic use.
IPv4 Broadcast / All-Zeros Detection
Matches exactly the all-zeros address (0.0.0.0) or all-ones broadcast address (255.255.255.255).
IPv6 Full Expanded Form
Matches a fully expanded (uncompressed) 128-bit IPv6 address with all 8 groups of 4 hex digits.
IPv6 Full (Expanded + Compressed)
Comprehensive pattern matching all valid IPv6 address forms including :: compressed notation, per RFC 5952.
IPv6 Loopback Address
Matches only the IPv6 loopback address ::1 in all its valid representations.
IPv6 in URL Bracket Notation
Matches an IPv6 address enclosed in square brackets as required for use in URLs (RFC 2732).
IPv4-Mapped IPv6 Address
Matches IPv4-mapped IPv6 addresses in the ::ffff:x.x.x.x form used for dual-stack sockets.
IPv6 Link-Local Address
Matches IPv6 link-local addresses in the fe80::/10 range, optionally including a zone ID.
IPv6 with CIDR Prefix Length
Matches a valid compressed or expanded IPv6 address followed by a CIDR prefix length (/0 to /128).
IPv6 Global Unicast Address (2000::/3)
Matches IPv6 global unicast addresses starting with 2 or 3 as the first hex digit (2000::/3 block).
MAC Address (Colon-Separated, Lowercase)
Matches a standard IEEE 802 MAC address with colon separators and lowercase hex digits.
MAC Address (Colon-Separated, Case-Insensitive)
Matches a MAC address with colon separators, accepting both upper and lowercase hex digits.
MAC Address (Hyphen-Separated)
Matches a MAC address using hyphen separators as commonly seen in Windows (e.g., ipconfig output).
MAC Address (Cisco Dot-Separated)
Matches a MAC address in Cisco notation: three groups of four hex digits separated by dots (e.g., 001a.2b3c.4d5e).
MAC Address (No Separators)
Matches a raw 12-digit hexadecimal MAC address without any separators.
MAC OUI (Organizationally Unique Identifier)
Matches the first three octets of a MAC address (the OUI), which identifies the manufacturer.
EUI-64 (64-bit Extended Unique Identifier)
Matches an IEEE EUI-64 identifier: 8 groups of 2 hex digits separated by colons or hyphens. Used in IPv6 interface IDs.