I have a variable that contains the html dump of a webpage.. lets call it $html.
I want to extract all the e-mails from it, as well as all the phone numbers.
I don't have a problem with regex's in general.. but if there are more then 1 e-mail or phone number on a line, how do I capture them all? (I know the /g option, but how do i step through each instance..)
I want to end up with two comma seperated lists, one for e-mails, and one for phone numbers.
Example/Pseudo code appreciated.
I want to extract all the e-mails from it, as well as all the phone numbers.
I don't have a problem with regex's in general.. but if there are more then 1 e-mail or phone number on a line, how do I capture them all? (I know the /g option, but how do i step through each instance..)
I want to end up with two comma seperated lists, one for e-mails, and one for phone numbers.
Example/Pseudo code appreciated.