I need to check a string for a street address. I can get preg_match to work on phone numbers and email addresses, but this one seems to be beyond me.
Basically, the user has to enter an address.
This address must be in the range between 6520 and 6579 Fake st (upper or lowercase).
function checkaddr($element) {
$pattern = "^65/{2}"
. "[2-7]{1}"
. "[0-9]{1}"
. "Fake/i";