My starting string is
alpha < beta < gamma < delta < epsi
I want to capture single tokens alpha,beta, ...
In one such expression, there might be also the possibily for operators to be referenced as 'lt','gt' and I have applied this regular expression so far.
/[^(\<\=?|\>\=?|==\ )|^(eq|lt|gt)]/g
This expression does not detect 'eq', 'lt', 'gt' as bounded words, but just 'e', 'q', 'l', 't', 'g'. What am I missing ?