mailer regex fix