Michele Venturi,
<dardo82@xxxxxxxxx>, wrote:
> Hello, I have a problem, can you help me?
> I would like to substitute the last match of
> a pattern during the parameters expansion:
>
> the string aXbXc should become aXbYc;
> I have not found a direct and general way
> of doing it, but there are some solutions…
> I would suggest a new flag like % or $ for it.
> I wonder if the syntax ${(%)str/X/Y} is going
> to conflict with other functionalities of ZSH…
But there is already a '%' flag...
This doesn't merits a new one.
> Adding negative indexes support to the 'I' flag
> would be very good but verbose in my opinion.
Extending the 'I' flag in this way would be ideal.