Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
522 B
1
Indexable
Never
dimension_temp = None
quantity_temp = None
for dimquan in sequences[searchKeyword][value]:
    if dimquan[0] is not None and re.search(re.compile(r'[^a-z]'+re.escape(dimquan[0])+r'[^a-z]'), ' '+re.escape(dimension)+' ') != None:
        dimension_temp = dimquan[0]
    if dimquan[1] is not None and re.search(re.compile(r'[^a-z]'+re.escape(dimquan[1])+r'[^a-z]'), ' '+re.escape(dimension)+' ') != None:
        quantity_temp = dimquan[1]
wordNumDimInter.append(dimension_temp)
wordNumDimQuantityInter.append(quantity_temp)