I posted this on the java intermediate section, but now I am trying to do this using js.
I have a text area where the user can enter Comma Seperated email values. So for ex. if the user types :
before submitting I should be able to convert the above into :
I did some regex research on this since we were planning to do this at the server side. But I am absolutely clueless on how I could do this from JS. I know the same regex can be used here.. but how would I trim the first and last names preceeding the email address.. and how could I strip the brackets and extra chars. ?