Zsh Mailing List Archive
Messages sorted by:
Reverse Date
,
Date
,
Thread
,
Author
Re: string match simplification?
X-seq
: zsh-users 30066
From
: "Mark J. Reed" <markjreed@xxxxxxxxx>
To
: Zsh Users <zsh-users@xxxxxxx>
Subject
: Re: string match simplification?
Date
: Tue, 3 Sep 2024 12:03:16 -0400
Archived-at
: <https://zsh.org/users/30066>
In-reply-to
: <CAA=-s3xnBFrxFiTrgVbH4B_dNd8FZQ1K4io8AYRjt755Rzm1=w@mail.gmail.com>
List-id
: <zsh-users.zsh.org>
References
: <
3d42adf7-747f-4311-a74d-a6d1439260cb@eastlink.ca
> <CAA=-s3zV-TUrd=y68aW906YfO7zVObZ+x_nphsQ=T-qLQuL6aQ@mail.gmail.com> <CAA=-s3xnBFrxFiTrgVbH4B_dNd8FZQ1K4io8AYRjt755Rzm1=w@mail.gmail.com>
Third time lucky... this precludes any dots in the extension:
[[ $filename =~ '\.([^.]*)$' ]]
extension=$match[1]
Follow-Ups
:
Re: string match simplification?
From:
Ray Andrews
References
:
string match simplification?
From:
Ray Andrews
Re: string match simplification?
From:
Mark J. Reed
Re: string match simplification?
From:
Mark J. Reed
Messages sorted by:
Reverse Date
,
Date
,
Thread
,
Author