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
- TotalEnergies forms AI partnership with French startup Mistral - 6/12/2025
- Inside Cursor's hiring strategy: no AI in interviews and a 2-day project with the team - 6/12/2025
- Oil prices ease as market assesses Middle East tension - 6/12/2025
- Apple is salvaging Image Playground with a boost from ChatGPT - 6/11/2025
- Hollywood enters AI scraping wars with new lawsuit from Disney and NBCUniversal - 6/11/2025
No comments:
Post a Comment