[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: Pierre-Yves Gérardy <pygy79@...>
- Date: Wed, 5 Mar 2014 16:54:26 +0100
On Wed, Mar 5, 2014 at 3:24 PM, Francisco Olarte <folarte@peoplecall.com> wrote:
> that I sanitize every pattern I use to see wether it
> starts with ^ or what?
Why not?
if pattern:byte() == 94 -- anchored
-- check once
else
-- search the whole string.
end
-- Pierre-Yves
- 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
- 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, Philipp Janda
- Re: Lua Suggestion: return nil in string.find/match() for indexes that are before the string, Francisco Olarte