:set fs:=/\|/; fn printSpan(str) := let val p := match str /\^+/ val str := option '(none)' (sprintf '%i-%i') p in str end; printSpan"{% / *\^+/}{`2}