Community Patterns

Community Library Entry

0

Regular Expression
Created·2020-12-15 13:28
Flavor·PCRE (Legacy)

/
Host\s+host2\s.*?IdentityFile\s+(?<identity>\S+)
/
s
Open regex in editor

Description

Sample regex to get the address to SSH IdentityFile for Host in ssh_config.

Submitted by anonymous