def parse_address(addr)
regex = Regexp.new(@@address_regexp, Regexp::IGNORECASE + Regexp::EXTENDED)
match = regex.match(addr)
return if match.nil?
normalize_address(
StreetAddress::US::Address.new(
:number => match[1],
:street => match[5] || match[10] || match[2],
:street_type => match[6] || match[3],
:unit => match[14],
:unit_prefix => match[13],
:suffix => match[7] || match[12],
:prefix => match[4],
:city => match[15],
:state => match[16],
:postal_code => match[17],
:postal_code_ext => match[18]
)
)
end