${(M)…}
: Include matched portion of pattern matching
(M)
is only useful for parameter expansion operators ${.../...}
and ${(S)...#...}
.
It includes the matched portion in the result.
Links
BashSupport Pro 是一款支持 M** 的 **Zsh 集成开发环境 - 立即试用!