"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes:
> Being a [useful-]feature junkie when it comes to wget I feel this could be
> included without making the program bloated in any way. Regular
> expressions are a good thing, almost always, and it would serve wget's
> purpose just great if it works flawless as described (haven't had time to
> patch and test myself) since perl is the grand master when it comes to
> regular expressions. Maybe with a brief introduction to regular
> expressions in the docs/info I think more people would get less files they
> don't want when they mirror a page or an ftp (making less traffic on the
> network = good), and at the same time you could have _very_ complex
> mirrors.
> 
> Although replacing the current -A and -R options might not be such a good
> idea, since older scripts depending on wget with -A,-R and people who use
> them now regulary would be confused if it just stopped working.. backward
> compability is always good, but then again it's a pain when it restrain
> progress - and I personally have no clue how this could be implemented as
> it is right now without letting go of the old -A,-R style, if you don't
> create brand new options of course. Then again, having options for _both_
> perl regular expressions _and_ the old style sounds like an even worse
> idea.

Yes, the fact that you would now have to understand regexps to use -A and -R
is one reason that patch didn't get immediately thrown into the main Wget.
One way to go might be to have a --regexp option which turns on regexp
support in all options that have it (probably starting with just -A and -R).
Those that wanted to could turn the option on all the time in their .wgetrc.

Also we'd have to make sure there are no problems bundling PCRE (or another
regexp library, if necessary) with Wget.

---------------------------------------------------------------
Dan Harkless            | To help prevent SPAM contamination,
GNU Wget co-maintainer  | please do not mention this email
http://sunsite.dk/wget/ | address in Usenet posts -- thank you.

Reply via email to