2 ms·You could compile all the regular expressions into a table. Lex has been doing that since, oh, 1975.by ksherlock 12y agoYou could compile all the regular expressions into a table. Lex has been doing that since, oh, 1975.