3 // the purpose of this php is to provide input validation functions
4 function gwvp_checkEmail($email)
6 $match = preg_match("/^[a-zA-Z0-9\+]+@[a-zA-Z0-9\.]+$/", $email);
8 if($match != 1) return false;
12 // TODO: need to write this
13 function gwvp_stripDescription($desc)
15 // this doesnt work yet
16 //$match = preg_replace("/^[a-zA-Z0-9\+]+@[a-zA-Z0-9\.]+$/", $email);
18 //if($match != 1) return false;