Use a regexp to match a token