fork(1) download
  1. import re
  2. ss = ['count_EVENT_GENRE in [1,2,3,4,5]','coint_EVENT_GENRE = "ROMANCE"']
  3. for s in ss:
  4. field = re.split(r'[=><]=?|\b(?:in|like)\b', s)[0].strip()
  5. print(field)
Success #stdin #stdout 0.01s 9016KB
stdin
Standard input is empty
stdout
count_EVENT_GENRE
coint_EVENT_GENRE