lua-users home
lua-l archive

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


I note that string.find(s,"%f[%w]) returns an endposition 1 less than the
start.
Can someone explain?


On Wed, 15 Sep 2004 11:16:48 -0300, Roberto Ierusalimschy
<roberto@inf.puc-rio.br> wrote:
> > Looking at the source I would say its syntax is %f[set] and
> > it matches the transition from "not in set" to "in set".
> > I.e. %f[%w] matches the start and %f[%W] the end of a "word".
> 
> Exactly. It is not documented because we are not sure it is worth
> providing this kind of facility.
> 
> -- Roberto
> 



-- 
db