[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua Suggestion: return nil in string.find/match() for indexes that are before the string
- From: Dirk Laurie <dirk.laurie@...>
- Date: Wed, 5 Mar 2014 08:16:11 +0200
2014-03-05 0:58 GMT+02:00 Pierre-Yves Gérardy <pygy79@gmail.com>:
> - %f[charset], the undocumented frontier pattern, which is a bit too
> long to describe here.
Since this is not the first post of 2014 in which the poster alleges
that the frontier pattern is undocumented, here is an extract from
the Lua 5.2 reference manual, already present in 5.2.2 if not before.
`%f[set]`, a frontier pattern; such item matches an empty string at
any position such that the next character belongs to set and the
previous character does not belong to `set`. The set `set` is
interpreted as previously described. The beginning and the end of the
subject are handled as if they were the character '\0'.
- References:
- Lua Suggestion: return nil in string.find/match() for indexes that are before the string, Coroutines
- Re: Lua Suggestion: return nil in string.find/match() for indexes that are before the string, Dirk Laurie
- Re: Lua Suggestion: return nil in string.find/match() for indexes that are before the string, Coroutines
- Re: Lua Suggestion: return nil in string.find/match() for indexes that are before the string, Thiago L.
- Re: Lua Suggestion: return nil in string.find/match() for indexes that are before the string, Coroutines
- Re: Lua Suggestion: return nil in string.find/match() for indexes that are before the string, Francisco Olarte
- Re: Lua Suggestion: return nil in string.find/match() for indexes that are before the string, Pierre-Yves Gérardy
- Re: Lua Suggestion: return nil in string.find/match() for indexes that are before the string, Francisco Olarte
- Re: Lua Suggestion: return nil in string.find/match() for indexes that are before the string, Pierre-Yves Gérardy
- Re: Lua Suggestion: return nil in string.find/match() for indexes that are before the string, Francisco Olarte
- Re: Lua Suggestion: return nil in string.find/match() for indexes that are before the string, Pierre-Yves Gérardy