Use regex for lex definition