${(I:expression:)…}: Pattern match selector

(I:expression:) is only useful with parameter expansion operators ${.../...}, ${(S)...#...}, ${(S)...%...}. Expression is a arithmetic expression to define the first match, where the pattern matching or string replacement should start.

${(I:expression:).../...}
${I:expression:...//...}
Defines the starting position of the replacement.
${(SI:expression:)...#...}
${(SI:expression:)...##...}
Match counted from the start of the string.
${(SI:expression:)...%...}
${(SI:expression:)...%%...}
Match counted from the end of the string.
BashSupport Pro 是一款支持 I** 的 **Zsh 集成开发环境 - 立即试用
© 2020–2024 Joachim Ansorg
声明
隐私政策
许可条款