:set fs:=/\|/; fn printSpan(str) := (sprintf '%i-%i')"(match str /\^+/); printSpan:?{% /\|/}{`2}