mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
doc: Document --accept-regex and --reject-regex.
This commit is contained in:
parent
f4122c5094
commit
e24e817259
@ -1,3 +1,8 @@
|
|||||||
|
2012-05-13 Giuseppe Scrivano <gscrivano@gnu.org>
|
||||||
|
|
||||||
|
* wget.texi (Types of Files): Document --accept-regex and
|
||||||
|
--reject-regex.
|
||||||
|
|
||||||
2011-10-02 Henrik Holst <henrik.holst@millistream.com> (tiny change)
|
2011-10-02 Henrik Holst <henrik.holst@millistream.com> (tiny change)
|
||||||
|
|
||||||
* wget.texi (HTTP Options): Document option --content-on-error.
|
* wget.texi (HTTP Options): Document option --content-on-error.
|
||||||
|
@ -2284,6 +2284,8 @@ in @file{.wgetrc}.
|
|||||||
@item -A @var{acclist}
|
@item -A @var{acclist}
|
||||||
@itemx --accept @var{acclist}
|
@itemx --accept @var{acclist}
|
||||||
@itemx accept = @var{acclist}
|
@itemx accept = @var{acclist}
|
||||||
|
@itemx --accept-regex @var{urlregex}
|
||||||
|
@itemx accept-regex = @var{urlregex}
|
||||||
The argument to @samp{--accept} option is a list of file suffixes or
|
The argument to @samp{--accept} option is a list of file suffixes or
|
||||||
patterns that Wget will download during recursive retrieval. A suffix
|
patterns that Wget will download during recursive retrieval. A suffix
|
||||||
is the ending part of a file, and consists of ``normal'' letters,
|
is the ending part of a file, and consists of ``normal'' letters,
|
||||||
@ -2300,6 +2302,9 @@ a description of how pattern matching works.
|
|||||||
Of course, any number of suffixes and patterns can be combined into a
|
Of course, any number of suffixes and patterns can be combined into a
|
||||||
comma-separated list, and given as an argument to @samp{-A}.
|
comma-separated list, and given as an argument to @samp{-A}.
|
||||||
|
|
||||||
|
The argument to @samp{--accept-regex} option is a regular expression which
|
||||||
|
is matched against the complete URL.
|
||||||
|
|
||||||
@cindex reject wildcards
|
@cindex reject wildcards
|
||||||
@cindex reject suffixes
|
@cindex reject suffixes
|
||||||
@cindex wildcards, reject
|
@cindex wildcards, reject
|
||||||
@ -2307,6 +2312,8 @@ comma-separated list, and given as an argument to @samp{-A}.
|
|||||||
@item -R @var{rejlist}
|
@item -R @var{rejlist}
|
||||||
@itemx --reject @var{rejlist}
|
@itemx --reject @var{rejlist}
|
||||||
@itemx reject = @var{rejlist}
|
@itemx reject = @var{rejlist}
|
||||||
|
@itemx --reject-regex @var{urlregex}
|
||||||
|
@itemx reject-regex = @var{urlregex}
|
||||||
The @samp{--reject} option works the same way as @samp{--accept}, only
|
The @samp{--reject} option works the same way as @samp{--accept}, only
|
||||||
its logic is the reverse; Wget will download all files @emph{except} the
|
its logic is the reverse; Wget will download all files @emph{except} the
|
||||||
ones matching the suffixes (or patterns) in the list.
|
ones matching the suffixes (or patterns) in the list.
|
||||||
@ -2318,6 +2325,9 @@ Analogously, to download all files except the ones beginning with
|
|||||||
expansion by the shell.
|
expansion by the shell.
|
||||||
@end table
|
@end table
|
||||||
|
|
||||||
|
The argument to @samp{--accept-regex} option is a regular expression which
|
||||||
|
is matched against the complete URL.
|
||||||
|
|
||||||
@noindent
|
@noindent
|
||||||
The @samp{-A} and @samp{-R} options may be combined to achieve even
|
The @samp{-A} and @samp{-R} options may be combined to achieve even
|
||||||
better fine-tuning of which files to retrieve. E.g. @samp{wget -A
|
better fine-tuning of which files to retrieve. E.g. @samp{wget -A
|
||||||
|
Loading…
Reference in New Issue
Block a user