Regular Expressions 101

Community Patterns

Community Library Entry

-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 - 2 years ago (Last modified 2 years ago)