gibsonca has asked for the wisdom of the Perl Monks concerning the following question:
How do I detect one or more uppercase characters in a string? Been trying things like this:
if ($str =~ m/[A-Z]/) { print "str contains an uc char\n" }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Simple Regex Question
by kennethk (Abbot) on Jun 02, 2009 at 19:49 UTC | |
Re: Simple Regex Question
by almut (Canon) on Jun 02, 2009 at 22:16 UTC | |
Re: Simple Regex Question
by jrsimmon (Hermit) on Jun 02, 2009 at 19:44 UTC | |
Re: Simple Regex Question
by Lawliet (Curate) on Jun 02, 2009 at 21:41 UTC |
Back to
Seekers of Perl Wisdom