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".