How would you correct this expression to accept only alpha/numeric
except the @ and . (period) symbols? In other words, how would I add
multiple chars to exclude to the regex?
if ($name=~/^W&&[^@]]+$/)
{ print "Only the @ and . characters are allowed";
}
> if ($name =~ /^[\w&&[^0-9_]]+$/) {
> # valid
> }
>
>which reads "\w AND NOT 0-9_".
>
>--
>Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/
>I am Marillion, the wielder of Ringril, known as Hesinaur, the Winter-Sun.
>Are you a Monk? http://www.perlmonks.com/ http://forums.perlguru.com/
>Perl Programmer at RiskMetrics Group, Inc. http://www.riskmetrics.com/
>Acacia Fraternity, Rensselaer Chapter. Brother #734
>** Manning Publications, Co, is publishing my Perl Regex book **
>
>
>--
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
*** Teresa Raymond
*** http://www.mariposanet.com
*** [EMAIL PROTECTED]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]