The expression:
preg_match_all( "/text.*?([A-Z0-9._%-]+@[A-Z0-9._%-]+\.[A-Z]{2,6})/i",$f,
$matches);
Returns ONE email address on a line in $f beginning 'text' - how do I
retrieve ALL the email addresses on a line in $f beginning 'text' in php?
Many thanks
Nick
preg_match_all( "/text.*?([A-Z0-9._%-]+@[A-Z0-9._%-]+\.[A-Z]{2,6})/i",$f,
$matches);
Returns ONE email address on a line in $f beginning 'text' - how do I
retrieve ALL the email addresses on a line in $f beginning 'text' in php?
Many thanks
Nick
Comment