https://bugzilla.wikimedia.org/show_bug.cgi?id=25920
--- Comment #5 from Aaron Schulz <jschulz_4...@msn.com> 2010-11-15 15:21:07 UTC --- (In reply to comment #4) > OK, I think the problem is that the backreference (not just the name) also > needs the "P". *sigh of relief*. I do think it's something about the conditional and not the named ref. that 5.2.8 dislikes. Worst case, I can use numbered references as a workaround, but it makes the expression less versatile for outside use (like combining it with other regexes). The following is also valid syntax (perl style): define( 'RE_IPV6_ADD', '(' . // starts with "::" (includes the address "::") '(::|:(:' . RE_IPV6_WORD . '){1,7})' . '|' . // ends with "::" (not including the address "::") RE_IPV6_WORD . '(:' . RE_IPV6_WORD . '){0,6}::' . '|' . // has no "::" RE_IPV6_WORD . '(:' . RE_IPV6_WORD . '){7}' . '|' . // contains one "::" in the middle ("^" check always fails if no "::" found) RE_IPV6_WORD . '(:(?P<abbr>(?(<abbr>)|:))?' . RE_IPV6_WORD . '){1,6}(?(<abbr>)|^)' . ')' ); Does this work on your setup? -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l