$mailcheckexp = Param('emailregexp');
$mailcheck = Param('emailregexpdesc');
} else {
- $mailcheckexp = '^[^@]+@[^@]+\\.[^@]+$';
+ $mailcheckexp = '^[\\w\\.\\+\\-=]+@[\\w\\.\\-]+\\.[\\w\\-]+$';
$mailcheck = 'A legal address must contain exactly one \'@\',
and at least one \'.\' after the @.';
}
'popular value to put here is <tt>^[^@]+$</tt>, which means ' .
'"local usernames, no @ allowed."',
type => 't',
- default => q:^[^@]+@[^@]+\\.[^@]+$:,
+ default => q:^[\\w\\.\\+\\-=]+@[\\w\\.\\-]+\\.[\\w\\-]+$:,
checker => \&check_regexp
},