ComputerHelp808
Newbie
- Nov 8, 2017
- 35
- 11
I use this to get emails off of a web page, but some school emails have a / . I don't understand preg_match well enough to add a / to acceptable charters. Even after looking at examples online I had trouble with it.
Thanks for your help,
Rick
Code:
$var = preg_match_all(
"/[a-z0-9]+[_a-z0-9.-]*[a-z0-9]+@[a-z0-9-]+(.[a-z0-9-]+)*(.[a-z]{2,4})/i",$body,$matches);
Thanks for your help,
Rick