item_weight = '1.8 inches' weight_re = re.findall(r'([1-9]d*.d*|0.d*[1-9]d*|d+) ([a-zs]*)', item_weight)