def select_field(): return _r(r'\w+')
def single_quoted_term(): # Match everything that falls under a '' and also match escaped ' (\') return u"'", Sequence(OneOrMore( [_r(r'[^\x27\\]'), (u"\\", _r(r'.'))]), skipws=False), u"'"
def term_raw(): return _r(r'[^\)]+')
def field_raw(): return _r(r'[^,\s]+')