Re: MacPerl-AnyPerl Filter a url by Ronald J Kimball- October 31, 2004 On Sun, Oct 31, 2004 at 01:48:10PM +0100, Eelco Alosery wrote:> Hello,> > 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.. matches.http://www.nntp.perl.org/group/perl.macperl.anyperl/2004/10/msg291.html Filter a url by Eelco Alosery- October 31, 2004 Hello,I want to filter a url from $ENV&39;HTTP_REFERER&39;If the url is http:www.testdomein.nltest.htmlI only want a result testdomein.nlI 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.htmlWhat is it i do wrong.Thanks,Eelco Aloseryhttp://www.nntp.perl.org/group/perl.macperl.anyperl/2004/10/msg290.html |