location address validation regular expression code example Example: address regex \d{1,5}\s\w.\s(\b\w*\b\s){1,2}\w*\.