Convert REs to Sequence of tokens