Ayesha Fathima

Ayesha Fathima

  • 1.7k
  • 148
  • 11.7k

Substring mail id from string

Dec 29 2017 2:01 AM
Hi,
i have string like var a=Mail A-mail.a@some.com;Mail B-mail.b@some.com;,I want to extract mail id from this string .Means mail.a@some.com;mail.b@some.com;
If iam using substring between '-' and ';' means iam getting only first mail id(mail.a@some.com).How can i do it?

Answers (5)