I have a ruby code that extracts email addresses from a page. my code outputs the email address, but also captures other text as well.
I would like to pull the actual email out of this string. Sometimes, the string will include a mailto, sometimes it will not. I was trying to get the single word that occurs before the @, and anything that comes after the @ by using a split, but I'm having trouble. Any ideas? Thanks!
href="mailto:[email protected]"> | Email</a></td>