madisonmay / CommonRegex

A collection of common regular expressions bundled with an easy to use interface.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Street Address can't parse following

quentinjs opened this issue · comments

3015 POE RD., HOUSTON, TX 77051

Do I need to do something first, or is this something that can be corrected in the street parser?

Oh, the call I am making is
for sa in street_address.finditer(res):
res = sa.string
break

This is working for other addresses but first one it failed on. Also unlike RE, it stopped on a \n and ignored the next line. Do I need to pre-parse the text?

failed to match on these as well
'10815 CANE GROVE LANE, HOUSTON, TX 77075'
'7119 ACACIA LANE, BAYTOWN, TX'
'14903 MOSSTEX DR., HUMBLE, TX 77396'
'10027 VICTORIA CHASE LN, HOUSTON, TX'
'6121 Grace Ln, Houston, TX 77021-3428'
'15003 DUNSTER LANE, CIIANNELVIEW, TX 77530'
'9702 RIDDLEWOOD LANE, HOUSTON, TX'
'{6010 WINCHMORE HILL, SPRING, TX 77379'
'3801 Leffingwell, Houston, Texas'
'9102 TARPON SPRINGS LANE, HOUSTON, TX'
'16915 MARLIN SPIKE WAY, CROSBY, TX'
'17415 SOLLY OAK PLACE, HUMBLE, TX 77396'