Domanda

please can someone help me with convert this string from eregi() to preg_match or preg_replace? Thank you very much!

$eregicheck = "^([-!#\$%&'*+./0-9=?A-Z^_`a-z{|}~])+@([-!#\$%&'*+/0-9=?A-Z^_`a-z{|}~]+\\.)+[a-zA-Z]{2,4}\$";
È stato utile?

Soluzione

Sure:

$pregcheck = "(".$eregicheck.")i";

Done.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top