${(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.
Links
BashSupport Pro ist eine Zsh IDE mit Unterstützung für ${(B)…} - probieren Sie es jetzt aus!