Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: alternation option end of string



$

e.g. 'a(b|$)' will match an a that is either followed by a b or at the end of the strings

^ matches the beginning 


Mark J. Reed <markjreed@xxxxxxxxx>

On Fri, May 1, 2026 at 18:32 Ray Andrews <rayandrews@xxxxxxxxxxx> wrote:
I know how to do an alternation, but how do you make one of the choices 'nothing' meaning end of string?  


Messages sorted by: Reverse Date, Date, Thread, Author