Re: MacPerl-AnyPerl Filter a url by John Delacour- November 5, 2004 At 1:48 pm +0100 311004, Eelco Alosery wrote:>I want to filter a url from $ENV&39;HTTP_REFERER&39;>If the url is http:www.testdomein.nltest.html>I only want a result testdomein.nl>>I have been testing whit this script>$url = s..(.+).$1is;>>It delets the first part of the url corect, but after .nl it deletes >the slash and not the remaining tekst.>The result is testdomein.nltest.html>>What is it i do wrong.Try something like this:$_...http://www.nntp.perl.org/group/perl.macperl.anyperl/2004/11/msg292.html |