folloed by a 2 through 4 digit extension define ("EMAIL", "^(.+)@([^\(\);:,<>]+)\.([a-zA-Z]{2,4})$"); // GPAs are a number from zero to four followed by a . and an upto 3 digit number: define("GPA", "^([0-9])\.([0-9]{1,3})$"); // a file name without a path (like ereg_codes.php) define("FILENAME", "^(.*)\.(.*)$"); // any number of characters followed by a dot followed by any number of characters ?>