[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: sscanf like in Lua
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Mon, 23 Aug 2010 18:10:07 -0300
> and that blanks in scanf consume spans of white spaces.
To reproduce this feature of scanf, use
v1, v2 = str:match("val%s+(%d+)%s+|%s+(%d+)")