Answers for "extract address from text python"

0

extract address from text python

import re

txt = ...
regexp = "[0-9]{1,3} .+, .+, [A-Z]{2} [0-9]{5}"
address = re.findall(regexp, txt)

#Output : address = ['44 West 22nd Street, New York, NY 12345']
Posted by: Guest on April-23-2022

Code answers related to "extract address from text python"

Python Answers by Framework

Browse Popular Code Answers by Language