regex fetching support for sftp.