Hi every one i want to validate postal address
I require the text field should contains Alphabets in Upper and lower case, numbers, hyphen, fullstops forward and back slash and commas and spaces in it
currently i am using this fucntion but its not getting me the same thing which i require can anyone help me in this
if(eregi("[0-9]+\s(\w)*(\W)(\s?)(\w)*(\W)(#[0-9])?(\W*)(\w)*(\W)(\s?)(\w)*(\s?)(\w)*", $address)) {
$valid_address = $address;
} else {
$error_address = 'Street address must be valid';
}