as the title says, i wanna match a conventional Lua number, like 10 or 10.0 or 10.6e12.
I thought out such a pattern:
'[+-]?%d-[%.]?%d-?[eE]?',
but it doesn't seem perfect.
Do you guys know a common pattern?
Thanks in advance
Edited by Sewbacca, 19 January 2017 - 12:59 PM.