title: I need Regex to mask email address in javascript
body: <p>I want to mask email address abcdef@gmail.com=> abXXX@gmail.com in JavaScript</p>
  
  <p>i used /(?&lt;=.{2}).(?=[^@]*?@)/ regex but not working in internet explorer and Mozilla so i need regex which works in all browser(JavaScript)</p>
  
  <p>maskedEmail = stringObj.replace(/(?&lt;=.{2}).(?=[^@]*?@)/g, "X");</p>