KLBWKCUZF3ATGINZCGJL5U7MGD7EBJYDORLWDUDMNWMSN2COJ2ZQC
SZWBLWZ4LUJZHTSYOIGJMXM7KPCGWJFPKLHYA5MHY7UTPNLZV5KQC
SXEYMYF7P4RZMZ46WPL4IZUTSQ2ATBWYZX7QNVMS3SGOYXYOHAGQC
r#"(ssh://)?((?P<user>[^@]+)@)?((?P<host>(\[([^\]]+)\])|([^:/]+)))((:(?P<port>\d+)/)|:|/)(?P<path>.+)"#
r#"(ssh://)?((?P<user>[^@]+)@)?((?P<host>(\[([^\]]+)\])|([^:/]+)))((:(?P<port>\d+)(?P<path0>(/.+)))|(:(?P<path1>.+))|(?P<path2>(/.+)))"#
let path = cap.name("path").unwrap().as_str();
let path = { let p = cap.name("path0").unwrap_or_else( || cap.name("path1").unwrap_or_else( || cap.name("path2").unwrap() )).as_str(); if p.starts_with("/~") { p.split_at(1).1 } else { p } };
let path = {
let p = cap.name("path0").unwrap_or_else(
|| cap.name("path1").unwrap_or_else(
|| cap.name("path2").unwrap()
)).as_str();
if p.starts_with("/~") {
p.split_at(1).1
}
else {
p
};