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