fork(26) download
  1. import re
  2. full = ['webb', 'ellis', '(sportswear)']
  3. regex = re.compile(r'\(.*\)$')
  4. filtered = [i for i in full if not regex.match(i)]
  5. print(filtered)
Success #stdin #stdout 0.01s 9016KB
stdin
Standard input is empty
stdout
['webb', 'ellis']