Hi,
Can anyone provide me the code snippet for EMail Address Validation.
User is going to enter the email address in form window. I need to validate the format is correct.
Thanks in Advance
BS
Hi,
Can anyone provide me the code snippet for EMail Address Validation.
User is going to enter the email address in form window. I need to validate the format is correct.
Thanks in Advance
BS
case $1 in
*@?*.?*) echo valid ;;
*) echo not valid; false ;;
esac
I really appreciate your immediate reply. Code snippet what you have provided is returning "valid" for wrong email id. Example ab,cd@test.com
Could you please help me to resolve this issue.
Regards
BS
Here's one discussion thread on the email address subject.
This is NOT a complete solution as one would have to implement the RFC 821, RFC 822, RFC 733.
Use Google to find other sources.