|
Bertrand Mansion wrote:
Basically, I have a string that can take these three forms for example: DATETIME VARCHAR(10) FLOAT(10,2)
With Lua, do I have to write three different patterns or is there a better solution?
For cases like this I'd recommend some additional library (e.g. LPeg or Lrexlib, depending on your task and preferences).
-- Shmuel