how do i alow a it to have a space. also how would i alow it to have a comma as well
if(!preg_match("/^[a-z\d]{0,25}$/i", $_POST[feild1]))
{
// Reshow the form with an error
$feild1_error = "must only contain letter and numbers and be a max characters of 25 in length!<br />";
include 'profileeditform.php';
exit;
}