Hrvoje Niksic wrote:
Wincent Colaiuta <[EMAIL PROTECTED]> writes:


Are you sure that "www-*" matches "www"?

Yes.

hrvoje is right. try this perl script:


#!/usr/bin/perl -w

use strict;

my @strings = ("www-.yoyodyne.com",
               "www.yoyodyne.com");

foreach my $str (@strings) {
    $str =~ /www-*.yoyodyne.com/ or print "$str doesn't match\n";
}


both the strings match.

--
Aequam memento rebus in arduis servare mentem...

Mauro Tortonesi                          http://www.tortonesi.com

University of Ferrara - Dept. of Eng.    http://www.ing.unife.it
GNU Wget - HTTP/FTP file retrieval tool  http://www.gnu.org/software/wget
Deep Space 6 - IPv6 for Linux            http://www.deepspace6.net
Ferrara Linux User Group                 http://www.ferrara.linux.it

Reply via email to