Hello and thanks in advance for taking the time to look at this. I have an issue validating a Mailing Address form field. The problems is when users enter an address that has two sets of numerals. For instance; "12345 ABC Street Suite 200" will result in a validation error. But if the user enters "12345 ABC Street Suite" it works correctly. So the issue is when the users enters a Numeral following a text string.
Here is my preg_match code
function checkStreetAddress($AddressStreet){
if(!preg_match("^[a-zA-Z\.\-&', \/\\ ]{1,100}$^", $AddressStreet))
return False;
else
return True;
}
Any ideas how to do this?