sambowry - 2014-06-01

Two {T-REPLACE-RX:...} are able to emulate an if-then-else like structure:

if not empty( _TEXT_ )
  _THEN_
else
  _ELSE_

{T-REPLACE-RX:!{T-REPLACE-RX:/1:_TEXT_/\A1:.+\z/_THEN_/}!\A1:\z!_ELSE_!}

So workaround for the missing override selection is exists by selecting the right format with this if-then-else construct. The following example tries to extend an ssh url with username/password from various places:

ssh://{T-REPLACE-RX:3{T-REPLACE-RX:21:{BASE:PASSWORD}2\A1:.+\z2{BASE:USERNAME}:{BASE:PASSWORD}2}3\A1:\z3{T-REPLACE-RX:6{T-REPLACE-RX:54:{BASE:USERINFO}5\A4:.+\z5{REF:U@T:{BASE:USERINFO}}:{REF:P@T:{BASE:USERINFO}}5}6\A4:\z6{USERNAME}:{PASSWORD}6}3}@{BASE:HOST}