Appendix B. Tectia Manpage for sshregex

This document describes the regular expressions (or globbing patterns) used in filename globbing with scp2 and sftp2 and in the configuration files ssh2_config and sshd2_config.

Regex syntax used with scp2 and sftp2 is ZSH_FILEGLOB.

The escape character is a backslash (\). You can use it to escape metacharacters to use them in their plain character form.

In the following examples, literal E and F denote any expression, whether a pattern or a character:

( Start a capturing subexpression.

) End a capturing subexpression.

. Match any character except for newline characters (\n, \f, \r) and the NULL byte.

[ Start a character set. See "Character Sets for Egrep and ZSH_FILEGLOB."

$ Match the empty string at the end of the input or at the end of a line.

^ Match the empty string at the start of the input or at the beginning of a line.