redact_address_2.py 296 B

123456789
  1. def addy(x):
  2. mi = re.findall(r'\d+?[A-Za-z\-\,\ \d+]{4,}', x)
  3. return mi
  4. ####################### Test addy
  5. # x = "I liked their services 22000 moross rd, detroit MI 48236"
  6. # w = addy(x)
  7. # print(w)
  8. # Cleans up addy and limits the additional data that is identified as part of the address.