neilwatson has asked for the wisdom of the Perl Monks concerning the following question:
Grettings. Why does this test fail?
#!/usr/bin/perl use strict; use warnings; use Test::More; use Regexp::Common qw/ net /; my $ip_query = "2 001:470:1d:a2f::%"; my $regex = qr/\A (?: $RE{net}{IPv6} ) | # A full IPv6 address (?: [0-9a-f:%]+ ) # A portion of an IPv6 address with SQL % wi +ldcards \Z/imsx; unlike( $ip_query, $regex, "Test [$ip_query] against big regex" ); done_testing();
Neil Watson
watson-wilson.ca
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Roughly matching an ipv6 address with sql wildcard
by graff (Chancellor) on Sep 10, 2015 at 01:18 UTC | |
by neilwatson (Priest) on Sep 10, 2015 at 01:55 UTC | |
by graff (Chancellor) on Sep 10, 2015 at 02:03 UTC | |
by neilwatson (Priest) on Sep 10, 2015 at 12:16 UTC | |
by graff (Chancellor) on Sep 10, 2015 at 14:12 UTC | |
by Anonymous Monk on Sep 10, 2015 at 02:12 UTC |