fork(1) download
  1. import re
  2. input_l = ['ICE ERIE', 'ERIE', 'o9 ManGo', 'ManGo SLACKCURRAN 120mL', 'SLACKCURRAN']
  3. reg = re.compile(r'\d*\.?\d+\s*(?:ounce|fl oz|foot|sq ft|pound|gram|inch|sq in|ml)\b', re.I)
  4. print( list(filter(reg.search, input_l)) )
Success #stdin #stdout 0.02s 9492KB
stdin
Standard input is empty
stdout
['ManGo SLACKCURRAN 120mL']