Answers.Body: <p>This was just recently fixed in 5.42 - see <a href="https://lab.civicrm.org/dev/core/-/issues/2769" rel="nofollow noreferrer">https://lab.civicrm.org/dev/core/-/issues/2769</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-09-06T14:10:22.090Z
Answers.LastActivityDate: 2021-09-06T14:10:22.090Z
Answers.UserDisplayName: Demerit
Body: <p>I want to add a somehow extraordinary email address to a civicrm contact:</p>
  <p><code>st.-georg-schule.heide@schule.landsh.de</code></p>
  <p>As it failed, I tested the rule in</p>
  <p><code>packages/HTML/QuickForm/Rule/Email.php</code></p>
  <p>and it matches, see:</p>
  <p><a href="https://regex101.com/r/0Tu5YQ/1" rel="nofollow noreferrer">https://regex101.com/r/0Tu5YQ/1</a></p>
  <p>So I do not have a clue what's going on.</p>
  
Tags: <email>
Title: Valid email fails validation on add - but regex rule seems not the reason?
ThreadText: # Valid email fails validation on add - but regex rule seems not the reason?
  
  (Asked by: username_0 on 2021-09-06)
  
  I want to add a somehow extraordinary email address to a civicrm contact:
  
  `st.-georg-schule.heide@schule.landsh.de`
  
  As it failed, I tested the rule in
  
  `packages/HTML/QuickForm/Rule/Email.php`
  
  and it matches, see:
  
  <https://regex101.com/r/0Tu5YQ/1>
  
  So I do not have a clue what's going on.
  
  **Tags:** email
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2021-09-06. Score: 1 | Accepted answer
  
  This was just recently fixed in 5.42 - see <https://lab.civicrm.org/dev/core/-/issues/2769>
  
  
  ---
  
  