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
- Brent futures, options volumes surpass pandemic record as oil market reels - 4/7/2025
- Brazil's energy minister asks Petrobras CEO to consider diesel price cut - 4/7/2025
- Chile regulator: copper prices have likely peaked as U.S.-China trade war looms - 4/7/2025
- EU will target less than €26 billion worth of U.S. imports, Sefcovic says - 4/7/2025
- DBS vendor ransomware attack potentially exposes 8,200 customer statements - 4/7/2025
No comments:
Post a Comment