how do i check url in correct format
Posted: Tue Nov 24, 2009 6:37 am
this is what im using to check if a email in correct format
can anyone tell me if this would reject any email address
also how would i check a url in correct format
can anyone tell me if this would reject any email address
Code: Select all
if(!preg_match('/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$/', $_POST[email]))