diff --git a/www/libs/Class.Form.Generate.inc b/www/libs/Class.Form.Generate.inc
index ec134200..f61fd5fb 100644
--- a/www/libs/Class.Form.Generate.inc
+++ b/www/libs/Class.Form.Generate.inc
@@ -927,13 +927,14 @@
break;
case "alphanumeric":
//$this->debug('edit', 'IN Alphanumeric');
- if (!preg_match("/^[0-9A-Za-z_-]+$/", $this->table_array[$key]["value"]))
+ if (!preg_match("/^[0-9A-Za-z_\-]+$/", $this->table_array[$key]["value"]))
$this->msg .= sprintf($this->l->__("Please enter a valid alphanumeric (Numbers and Letters only also - and _, no spaces) value for the %s Field!
"), $this->table_array[$key]["output_name"]);
break;
// this one also allows @ and .
case "alphanumericextended":
//$this->debug('edit', 'IN Alphanumeric');
- if (!preg_match("/^[0-9A-Za-z_-@\.]+$/", $this->table_array[$key]["value"]))
+ $this->debug('REGEX CHECK', 'ANE: '.$this->table_array[$key]["value"]);
+ if (!preg_match("/^[0-9A-Za-z_\-@\.]+$/", $this->table_array[$key]["value"]))
$this->msg .= sprintf($this->l->__("Please enter a valid alphanumeric extended (Numbers, Letters, -, _, @ and . only, no spaces) value for the %s Field!
"), $this->table_array[$key]["output_name"]);
break;
case "password":