title: Convert Java Regex to javascript regex
body: <pre><code>([a-zA-Z0-9_\\-])([a-zA-Z0-9_\\.+~!#/$%^&amp;*_=\\'?\\-]*)@[A-Za-z0-9-]+(\\.[A-Za-z0-9-]+)*(\\.[A-Za-z0-9]{2,})$
  </code></pre>
  
  <p>which is working fine for Java but it is not working for JavaScript might be backward slash have a some problem, please tell me how I can convert above java regex into Java Script.</p>