I have two python lists
li = ['206 Brookwood Center Drive Suite 508, WMP, Birmingham, AL 35111',
'340 Independence Drive, Homewood, AL 35209',
'41 Doell Drive Southeast, Huntsville, AL 35801',
'3 Mobile Circle, Suite 401, Mobile, AL 36607',
'7209 Copperfield Drive, Montgomery, AL 36117']
mi = ['340 Independence Dr Homewood, AL 35209',
'41 Doell Dr SE, Ste 24 Huntsville, AL 35801',
'3 Mobile Cir, Ste 401 Mobile, AL 36607',
'36 Saint Lukes Dr Montgomery, AL 36117',
'91 Kanis Rd, Ste 300 Little Rock, AR 72205',
'25 S Dobson Rd, Bldg J Chandler, AZ 85224']
I want to loop through li and see if a record does not exist in mi using some kind of partial text match, I tried startswith, in but because of differences like "Dr - Drive", "Suite-ste" this fails. Any suggestions? Would some kind of python regex work? The output should be '206 Brookwood Center Drive Suite 508, WMP, Birmingham, AL 35111' and 7209 Copperfield Drive, Montgomery, AL 36117