Given only the email address, I'm trying to remove the email, corresponding person's name and the following comma (if exist) from the string regardless where in the string the email appears.
var str = 'Peter Johnson <[email protected]>, Bob Cooper-Junior <[email protected]>, John Michaels <[email protected]>';
so if I want to remove '[email protected]' I would end-up with:
var str = 'Peter Johnson <[email protected]>, John Michaels <[email protected]>';
Thanks