 |
Index for Section 5 |
|
 |
Alphabetical listing for S |
|
 |
Bottom of page |
|
sshregex(5)
NAME
sshregex - Glob (wildcard) patterns
PATTERNS
The escape character is a backslash (\). You can use the backslash to
specify metacharacters that you want to use in their plain character form.
In the following examples, literal E and F denote any expression; for
example, a pattern or character.
* Match any character string. The characters can be any characters except
for slash (/). However, the asterisk does not match a string if a dot
(.) is the first character, or if the string contains a dot immediately
after a slash. If the previous character is a slash (/), or the
asterisk (*) is used to denote a match at the beginning of a string,
the asterisk does match a dot (.). That is, the asterisk functions as
it does in Tru64 UNIX shell file globs.
? Match any single character except for a slash (/). However, do not
match a dot (.) if located at the beginning of the string, or if the
previous character is a slash (/). That is, the question mark (?)
functions as it does in Tru64 UNIX shell file globs.
**/ Match any sequence of characters that is either empty or ends in a
slash. However, the substring /. is not allowed. Note that ** is
equivalent to *.
E# Act as Kleene star; match E.
E## Closure; match E one or more times.
( Start a capturing subexpression.
) End a capturing subexpression.
E|F Disjunction; match (inclusively) either E or F. E is preferred if both
match.
[ Start a character set. See CHARACTER SETS.
] End a character set. See CHARACTER SETS.
CHARACTER SETS
A character set starts with an open bracket ( [ ) and ends at a non-escaped
close bracket ( ] ) that is not part of a POSIX character set specifier and
that does not follow immediately after an open bracket. The following
characters have a special meaning and need to be escaped if meant
literally:
- (minus sign)
A range operator, except immediately after an open bracket, where it
loses its special meaning.
^ or !
If immediately after starting an open bracket, denotes a complement:
the whole character set will be complemented. Otherwise literal ^.
[:alnum:]
Characters for which isalnum returns true.
[:alpha:]
Characters for which isalpha returns true.
[:cntrl:]
Characters for which iscntrl returns true.
[:digit:]
Characters for which isdigit returns true.
[:graph:]
Characters for which isgraph returns true.
[:lower:]
Characters for which islower returns true.
[:print:]
Characters for which isprint returns true.
[:punct:]
Characters for which ispunct returns true.
[:space:]
Characters for which isspace returns true.
[:upper:]
Characters for which isupper returns true.
[:xdigit:]
Characters for which isxdigit returns true.
EXAMPLE
[[:xdigit:]XY] is typically equivalent to [0123456789ABCDEFabcdefXY].
LEGAL NOTICES
SSH is a registered trademark of SSH Communication Security Ltd.
SEE ALSO
Commands: scp2(1), sftp2(1)
 |
Index for Section 5 |
|
 |
Alphabetical listing for S |
|
 |
Top of page |
|