Index: trunk/phase3/includes/IP.php |
— | — | @@ -48,7 +48,7 @@ |
49 | 49 | '|' . // contains no "::" |
50 | 50 | RE_IPV6_WORD . '(?::' . RE_IPV6_WORD . '){7}' . |
51 | 51 | ')' |
52 | | - // NOTE: With PCRE 7.2+, we can combine the last two cases into one regex: |
| 52 | + // NOTE: With PCRE 7.2+, we can combine the two '"::" in the middle' cases into: |
53 | 53 | // RE_IPV6_WORD . '(?::((?(-1)|:))?' . RE_IPV6_WORD . '){1,6}(?(-2)|^)' |
54 | 54 | // This also improves regex concatenation by using relative references. |
55 | 55 | ); |