Good day, Stephanie;
At 01:46 PM 7/23/2001 -0700, Stephanie Stiavetti wrote:
>I need to make sure that a field contains ONLY letters... and this is the
>regular expression I'm using:
>
>$name=~/^[a-zA-Z]+/
>
>
>it doesn't seem to be working in the test script that I wrote:
Your test script worked fine for me.... You may want to detail where you're
getting errors.
>what am I doing wrong? also, will said regular expression accept foreign
>characters as letters, like an umlaut? (ö)
Good question... My guess is that if Perl translates a-z & A-Z into hex
values to determine the range, an o with an umlaut would be outside the
range of a-z, and would not match..
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]