fork 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. fieldObj = re.match(r'[a-z]+(?:_[A-Z]+)*', s)
  5. if fieldObj:
  6. print(fieldObj.group())
Success #stdin #stdout 0.02s 9016KB
stdin
Standard input is empty
stdout
count_EVENT_GENRE
coint_EVENT_GENRE