Here is a sample code for validating email address using JavaScript regular expression.
var Email = "username@domain.com";
var flag = /^[a-zA-Z0-9_.]+@[a-zA-Z0-9]+[.][a-zA-Z]+[a-zA-Z.]*$/.test(Email);
if(flag){
alert('Valid email address');
}else
alert('Invalid email address');
This wiki-webreference blog provides scripts, tips and various best reference site URLs and links to get tutorials and scripts for IT developers (DHTML, JavaScript, Ajax, Xajax, PHP and MySql and etc) and other valuable information. And also this blog provides guidelines to Facebook application developers to develop Facebook application in PHP.
Sunday, December 23, 2007
Subscribe to:
Post Comments (Atom)
Yahoo! News: Technology News
- Oil prices set for weekly drop with tariff legal battles, OPEC+ in focus - 5/30/2025
- Enterprise Products says its China exports could fall due to license requirement - 5/29/2025
- Nvidia, Dell to supply next US Department of Energy supercomputer - 5/29/2025
- Meta working with Anduril on AR/VR military tech for soldiers - 5/29/2025
- Wall Street is looking past Nvidia’s China problem… for now - 5/29/2025
No comments:
Post a Comment