Anyone with experience in regex can help me convert these since it won't work in PHP 7 anymore.
	
	
	
		
I'd like to replace ereg with preg_match
Thank you
				
			
		Code:
	
	if (!ereg("^[^@]{1,64}@[^@]{1,255}$", $email)) {
if (!ereg("^(([A-Za-z0-9!#$%&'*+/=?^_`{|}~-][A-Za-z0-9!#$%&'*+/=?^_`{|}~\.-]{0,63})|(\"[^(\\|\")]{0,62}\"))$", $local_array[$i])) {
if (!ereg("^\[?[0-9\.]+\]?$", $email_array[1])) {I'd like to replace ereg with preg_match
Thank you
 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		