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

Re: check for capital letters



On Tue, Jan 17, 2023 at 9:58 PM Ray Andrews <rayandrews@xxxxxxxxxxx> wrote:
>
> What's our preferred method of testing whether a string has any capital
> letters in it?

This:

    [[ $string == *[[:upper:]]* ]]

Roman.




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