${(B)…}: Include index of pattern matching

(B)is only useful for parameter expansion operators ${.../...} and ${(S)...#...}. It includes the index of the beginning of the match in the result.

BashSupport Pro is a Zsh IDE with support for ${(B)…}try it now!
© 2020–2024 Joachim Ansorg
Imprint
Privacy Policy
Legal