On Wed, 25 Nov 2015 17:22:04 +0000 Andrew Solomon <and...@geekuni.com> wrote:
> The only problem I can see is that you want UPPERCASE-1234 and your > regex has lowercase. Try > > (\A[A-Z]+) # match and capture leading alphabetics Please put the anchor outside the capture. And you could use the POSIX conventions: m{ \A ([[:upper:]]+) }msx; This will work with non-English characters. :) -- Don't stop where the ink does. Shawn -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/