title: Email Regex Issues
body: <p>I'm trying to get my email validation regex working but the first group isn't allowing me to use the . after the \d for some reason. Am I doing something wrong? sorry very new to handling regex myself but I believe you cannot just do \d.- as the . has a different meaning in regex.</p>
  
  <pre><code>const patterns = { email: /^([a-z\d\.-]+)@([a-z\d-]+)\.([a-z]{2,8})(\.[a-z]{2,8})?$/ };
  </code></pre>
  
  <p>Thanks in advance for any help provided.</p>