On Wed, 25 Nov 2015 17:22:04 +0000
Andrew Solomon <[email protected]> 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: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/