in reply to Regex Bug?
Your question has been
answered, but consider this instead:
Instead of trying to capture everything UP to the question mark, just get rid of the question mark and everything AFTER it.$url =~ s/\?.*$//;
Also, consider the URI CPAN module:
TIMTOWTDI! ;)use URI; my $uri = URI->new($url); print $uri->scheme, '://', $uri->host, $uri->path, "\n";
jeffa
L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
In Section
Seekers of Perl Wisdom