This is an example of testing the user's Email address, and the previous PHP regular expression corresponds to
Function VerifyAddress (OBJ)
{
// Obtain Form Value Into Variable
Var email = Obj.email.Value;
// Define Regex
Var pattern = /^([A-ZA-Z0-9_-] )@([A-ZA-Z0-9_-] ) (/.[a-za-z0-9_-]) /;
// Test for Pattern
Flag = Pattern.Test (email);
IF (Flag)
{Alert ("Ummmmmmmmm .... That Sounds Good!");
Return True;
}
Else
{
Alert ("Hey - WHO Do you think you're kidding?");
Return False;
}
}
// stop hiding ->
script>
hEAD>