Google

Internet

Jalan-jalan

Network

Ponsel

Home » PHP

Validating email address

Submitted by kadek on Monday, 23 October 2006No Comment

< ?php

function ValidEmailAddress($address) {
$regex = ‘/^[A-z0-9][w.-]*@[A-z0-9][w-.]+.[A-z0-9]{2,6}$/\’;
return (preg_match($regex, $address));
}
?>

Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.