Skip Menu |

This queue is for tickets about the Regexp-IPv6 CPAN distribution.

Report information
The Basics
Id: 84199
Status: open
Priority: 0/
Queue: Regexp-IPv6

People
Owner: Nobody in particular
Requestors: rjray [...] blackperl.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.03
Fixed in: (no value)



Subject: Module fails 4 cases in the dartware IPv6-regexp test script
The attached script is taken from a link on the page, http://forums.intermapper.com/viewtopic.php?t=452 It compares correctness performance for several hand-crafted regular expressions for IPv6, as well as Regexp::IPv6. Running it shows that Regexp::IPv6 fails four of the tests: FAILED: '::' should be valid FAILED: 'fe80:0000:0000:0000:0204:61ff:254.157.241.086' should not be valid FAILED: '1111:2222:3333:4444:5555:6666:00.00.00.00' should not be valid FAILED: '1111:2222:3333:4444:5555:6666:000.000.000.000' should not be valid Randy -- Randy J. Ray rjray@blackperl.com randy.j.ray@gmail.com
Subject: test-ipv6-regex.pl

Message body is not shown because it is too large.

From: Wesley Schwengle
It can be fixed with the following regexp: my $ipv4_part = '([0-9]|[1-9][0-9]|1[0-9][0-9]|2([0-4][0-9]|5[0-5]))'; my $IPv4 = "$ipv4_part\\.$ipv4_part\\.$ipv4_part\\.$ipv4_part"; This will fix the errors.