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

Re: string match simplification?



Third time lucky... this precludes any dots in the extension:

[[ $filename =~ '\.([^.]*)$' ]]
extension=$match[1]


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