Re: alternation option end of string

Ray Andrews <[email protected]>
Newsgroups gmane.comp.shells.zsh.devel,gmane.comp.shells.zsh.user
Message-ID <[email protected]>

On 2026-05-01 15:39, Mark J. Reed wrote:
> $
>
> 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
Thanks Mark, just the thing.

I think Ray means a glob pattern, not a regular expression?

Nope, just string matches.



>
>
> Mark J. Reed <[email protected]>
>
> On Fri, May 1, 2026 at 18:32 Ray Andrews <[email protected]> wrote:
>
>     I know how to do an alternation, but how do you make one of the
>     choices 'nothing' meaning end of string?
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.