Regular Expressions 101

Community Patterns

IP6 Validator Address (Simple)

-1

Regular Expression
PCRE2 (PHP >=7.3)

/
([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}
/
gm

Description

Short form validation of an IP6 address Less complex than other examples I have seen around

Submitted by anonymous - a year ago (Last modified a year ago)