added regex matcher class to speed up tokenization