How would this Go Regexp translate to JavaScript?
"[\\w!#$%&'*+/=?^_`{|}~-]+(?:\\.[\\w!#$%&'*+/=?^_`{|}~-]+)*@(?:[\\w](?:[\\w-]*[\\w])?\\.)+[a-zA-Z0-9](?:[\\w-]*[\\w])?"
How would this Go Regexp translate to JavaScript?
"[\\w!#$%&'*+/=?^_`{|}~-]+(?:\\.[\\w!#$%&'*+/=?^_`{|}~-]+)*@(?:[\\w](?:[\\w-]*[\\w])?\\.)+[a-zA-Z0-9](?:[\\w-]*[\\w])?"
There has to be a better way to do what you're doing than that monstrosity of a pattern.
Regular expressions tend to be pretty portable. You should just drop it into a regex tester (Google it) or a script file and see if you get the matches you expect. If you don't, rebuild the regex in chunks and see which piece causes it to fail.