* check for capital letters
@ 2023-01-17 20:57 Ray Andrews
2023-01-17 21:07 ` Roman Perepelitsa
0 siblings, 1 reply; 3+ messages in thread
From: Ray Andrews @ 2023-01-17 20:57 UTC (permalink / raw)
To: Zsh Users
What's our preferred method of testing whether a string has any capital
letters in it? Whatever I come up with, Roman will be able to do it
better so I may as well just get it right the first time :-)
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: check for capital letters
2023-01-17 20:57 check for capital letters Ray Andrews
@ 2023-01-17 21:07 ` Roman Perepelitsa
2023-01-17 21:55 ` Ray Andrews
0 siblings, 1 reply; 3+ messages in thread
From: Roman Perepelitsa @ 2023-01-17 21:07 UTC (permalink / raw)
To: Ray Andrews; +Cc: Zsh Users
On Tue, Jan 17, 2023 at 9:58 PM Ray Andrews <rayandrews@eastlink.ca> wrote:
>
> What's our preferred method of testing whether a string has any capital
> letters in it?
This:
[[ $string == *[[:upper:]]* ]]
Roman.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: check for capital letters
2023-01-17 21:07 ` Roman Perepelitsa
@ 2023-01-17 21:55 ` Ray Andrews
0 siblings, 0 replies; 3+ messages in thread
From: Ray Andrews @ 2023-01-17 21:55 UTC (permalink / raw)
To: zsh-users
On 2023-01-17 13:07, Roman Perepelitsa wrote:
> [[ $string == *[[:upper:]]* ]]
Perfect as always. Thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-01-17 21:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-17 20:57 check for capital letters Ray Andrews
2023-01-17 21:07 ` Roman Perepelitsa
2023-01-17 21:55 ` Ray Andrews
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).