I am new to using preg_match...
I cant seem to get this right. I just want to get myemail@gmail.com or whatever is in that spot, so if an image was there to get the text of so <img src="/image.somwhere.jpg">
Any help would be great.
HTML -
<div class="mfsm">Email:</div></td><td valign="top"><div class="mfsm"><a href="mailto:Array">myemail@gmail.com</a></div>
Here is what i have, but its blank when i look at resutls.
preg_match('|mail([^\<]*)<\/div><\/td><td valign=\"top\"><div class=\"mfsm\">([^\<]*)<|', $result, $email);
MOD EDIT: [noparse]
and [code=php][/noparse] bbcode tags added - please use these in the future!