title: Regex is working on Chrome but not in Safari
body: <p>The following regex is working just fine on Chrome, but it breaks in Safari with the following error: <code>SyntaxError: Invalid regular expression: invalid group specifier name</code>.</p>
  <p>Regex: <code>/^[a-zA-Z0-9.!#$%&amp;'*+\-\/=?^_{|}~]+[@](?!-)[a-zA-Z0-9-]+(?&lt;!-)[.][a-zA-Z]{2,}$/</code></p>
  <p>I am new at Regex, so I have no idea why it seems to work on 1 browser but not the other, is there anyway I can fix this?</p>
  <p>Example Data:</p>
  <pre><code>random#email@domain-good.com
  random@domain-bad-.com
  </code></pre>
  <p>The 2 example should fail because it starts/ends with a <code>-</code>.</p>