[EMAIL PROTECTED] wrote:
Can someone help me with validating email chars?

I just need to verify the fron of the @ sign.

Will the below ensure something like [EMAIL PROTECTED]

$email ~ /^[a-zA-Z][\w\-\.]{3,[EMAIL PROTECTED]/

thanks


I think you have the soln already


In your script you could do something like this

if( $email=~/^[a-zA-Z][\w\-\.]{3,[EMAIL PROTECTED]/) {

# Valid

} else {

# invalid

}


Bye Ram


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to