${(R)…}: Include unmatched portion of pattern matching
(R)is only useful for parameter expansion operators ${.../...} and ${(S)...#...}.
It includes the unmatched portion of the pattern matching in the result.
Links
BashSupport Pro ist eine Zsh IDE mit Unterstützung für ${(R)…} - probieren Sie es jetzt aus!