Skip to content

Instantly share code, notes, and snippets.

data = re.findall(r'(?:.*Trustee\(s\)|Owner(?:\(s\))?\s*(?:names?)?):\s*(?P<owner>.*)\s*(?:\,\s*|-|Address:?)\s*(?P<address>\d.*\d{5})\s*(?:APN|Assessors|Pursuant)|(?:Owners?\s*(?:name\s*)?\s*(?:\(s\))?:?\s*\&?\s*address:?|Property\s*Owner)\s*[\d-]*\s*(?P<first_address>\d+.*(?:St\.|Street))\s*(?P<name>.*?)\s*(?P<second_addrss>(?:P\.O|\d).*\d{5})', text_box_left.encode('utf-8'), re.IGNORECASE)[0]