Hrvoje Niksic wrote:
Mauro Tortonesi <[EMAIL PROTECTED]> writes:

wget -r --filter=-domain:www-*.yoyodyne.com

This appears to match "www.yoyodyne.com", "www--.yoyodyne.com",
"www-------.yoyodyne.com", and so on, if interpreted as a regex.

not really. it would not match www.yoyodyne.com.

Why not?

i may be wrong, but if - is not a special charachter, the previous
expression should match only domains starting with www- and ending
in [randomchar]yoyodyne[randomchar]com.

"*" matches the previous character repeated 0 or more times.  This is
in contrast to wildcards, where "*" alone matches any character 0 or
more times.  (This is part of why regexps are often confusing to
people used to the much simpler wildcards.)

Therefore "www-*" matches "www", "www-", "www--", etc., i.e. Scott's
interpretation was correct.  What you describe is achieved with the
"www-.*.yoyodyne.com".

you're right. ok, it is official. i must stop drinking this much - it just doesn't work. i have to start drinking less or, even better, more.

--
Aequam memento rebus in arduis servare mentem...

Mauro Tortonesi                          http://www.tortonesi.com

University of Ferrara - Dept. of Eng.    http://www.ing.unife.it
GNU Wget - HTTP/FTP file retrieval tool  http://www.gnu.org/software/wget
Deep Space 6 - IPv6 for Linux            http://www.deepspace6.net
Ferrara Linux User Group                 http://www.ferrara.linux.it

Reply via email to