|
|
|
|
Regular Expressions in FTP searchWe handle most of the ``extended'' Regular expressions as defined in POSIX 1003.2. Some examples of mapping from the filename globbing performed by the unix shells (sh, bash, csh, tcsh) to regular expressions are shown here:
Globbing Regexp
abc ^abc$
*abc* abc
abc* ^abc
*abc abc$
abc*def. ^abc.*def\.$
abc\*def. ^abc\*def\.$
abc.def ^abc\.def$
abc?def ^abc.def$
abc\?def ^abc\?def$
*.txt \.txt$
{abc,def,ghi} ^(abc|def|ghi)$
*{abc,def,ghi}*.txt (abc|def|ghi).*\.txt$
*\[def* \[def
Restrictions
Zurück zur Suchseite
|