Regular Expressions 101

Community Patterns

PCRE2 ipv6

0

Regular Expression
PCRE2 (PHP >=7.3)

/
^([0-9a-f]{1,4}:)+(([0-9a-f]{1,4})?:)+([0-9a-f]{1,4})(?= )
/
gm

Description

Some cases of ipv6 at string begin

Submitted by anonymous - 2 years ago