Index: trunk/phase3/includes/IP.php |
— | — | @@ -42,7 +42,7 @@ |
43 | 43 | '|' . // has no "::" |
44 | 44 | RE_IPV6_WORD . '(?::' . RE_IPV6_WORD . '){7}' . |
45 | 45 | '|' . // contains one "::" in the middle (awkward regex for PCRE 4.0+ compatibility) |
46 | | - RE_IPV6_WORD . '(?::(?!(?P=abn))(?P<abn>:(?P<iabn>))?' . RE_IPV6_WORD . '){1,6}(?P=iabn)' . |
| 46 | + RE_IPV6_WORD . '(?::(?P<abn>(?!(?P=abn)):(?P<iabn>))?' . RE_IPV6_WORD . '){1,6}(?P=iabn)' . |
47 | 47 | // NOTE: (?!(?P=abn)) fails iff "::" used twice; (?P=iabn) passes iff a "::" was found. |
48 | 48 | |
49 | 49 | // Better regexp (PCRE 7.2+ only), allows intuitive regex concatenation |