Re: (pdf) download size

amb-Uxr6IM1mbv2TY6FTCsQk+9Bc4/[email protected] (Andrew M. Bishop)
Newsgroups gmane.network.wwwoffle.user
Message-ID <[email protected]>
mi <[email protected]> writes:

> mi <[email protected]>:
> >     if(shExpMatch(url,"*.pdf") || (shExpMatch(url,"*.zip"))
> > 	return "DIRECT";
> > 
> >  else
> >     if((url.substring(0, 5) == "http:") || (url.substring(0, 4) == "ftp:"))
> >        return "PROXY localhost:8080; DIRECT";
> >     else
> >        return "DIRECT";
> > }

> btw. if 'matching' works like bash "grep", it should be sth. like
> 
> if(shExpMatch(url,"*.pdf$")
> 
> ....right ?

They are "shell expressions" and not regular expressions like used in
grep.  The function shExpMatch() is defined on the web page
http://wp.netscape.com/eng/mozilla/2.0/relnotes/demo/proxy-live.html
where it makes this clear.

-- 
Andrew.
----------------------------------------------------------------------
Andrew M. Bishop                             amb-Uxr6IM1mbv2TY6FTCsQk+9Bc4/[email protected]
                                      http://www.gedanken.demon.co.uk/

WWWOFFLE users page:
        http://www.gedanken.demon.co.uk/wwwoffle/version-2.8/user.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.