use re for tokenization