I have more than 2000 email addresses. which i have exported from feedburner. And the email address look like below;
adminvicky@gmail.com Active 12/05
You can try this regex instead:
a.replace(/\s+.+$/g, '')
This should work for your case.