lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


In article <db3aeaf60903310826u4c31da9bsde1dfad78c803964@mail.gmail.com>,
   Duncan Cross <duncan.cross@gmail.com> wrote:
> Sorry, I just realised a problem with this - it will match something
> with two decimal points, I should move the second fractional bit inside
> the previous if block:
>[program]

Thank you very much, this exactly works in the way I was looking for but I
expected the solution to be simpler and thought that I did not understant
enough of lua's matching syntax. So I guess you are right when you say
that looking into lpeg might be a good idea for similar situations in the
future.

Michael