--- Stephanie Stiavetti <[EMAIL PROTECTED]> 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]+/
> what am I doing wrong?
This guarantees that it *starts* with letters. Add a $:
$name=~/^[a-zA-Z]+$/
Now it has to be letters from start to finish (and there must be one or
more).
> also, will said regular expression accept foreign
> characters as letters, like an umlaut? (ö)
Nope.
__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]