in reply to
Alternating Case Regex
I'd probably go with
/^[[:lower:]]?([[:upper:]][[:lower:]])*[[:upper:]]?$/
[download]
which gives the same result.
map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
Comment on
Re: Alternating Case Regex
Select
or
Download
Code
In Section
Cool Uses for Perl