How to extract only the phone numbers and email id's from a String?
<p>I have many SMS like this</p>

<blockquote>
  <p>I got a new mobile for Rs.18000 and my new mobile number is 9097123456, my landline number is 040-201234 and my email id is abcd@gmail.com - </p>
</blockquote>

<p>Now I want to retrieve only the phone numbers and email id from the entire msg string and store in separate string variables. How to do this?</p>
