On 7/6/2011 8:45 AM, Duane Hill wrote:
>> Yes, this should be added to the top of the file, except the
>> v6 bypass expression needs to be improved.
>
>> I would assume that no one else is using this with ipv6 since
>> the offending rule will match any address ending with
>> letter+number.
>
> A quick search on the web I found this for IPv6 (all on one line):
>
> /^(((?=(?>.*?::)(?!.*::)))(::)?(([0-9A-F]{1,4})::?){0,5}|((?5):){6})(\2((?5)(::?
> |$)){0,2}|((25[0-5]|(2[0-4]|1[0-9]|[1-9])?[0-9])(\.|$)){4}|(?5):(?5))(?<![^:]:|\
> .)\z/i
>
>
Well, that certainly looks impressive. This is more in line
with what I was expecting; ipv6 syntax is considerably more
complex than v4. But does it work? I don't have time for
testing right now.
If it seems to work reliably, just add that rule with a DUNNO
near the top of the file.
-- Noel Jones