Added option to accept regex for the lexicon maker.