[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Missing string.find functionality in Lua 5.1
- From: PA <petite.abeille@...>
- Date: Sat, 10 Sep 2005 14:00:28 +0200
On Sep 10, 2005, at 14:27, Shmuel Zeigerman wrote:
To get this functionality with Lua 5.1, one should use
2 functions instead: string.find and string.match.
Perhaps string.find() and string.sub()?
E.g.:
local aStart, anEnd = aContent:find( "%b<>", anIndex )
if aStart ~= nil then
local aTag = aContent:sub( aStart, anEnd )
Cheers
--
PA, Onnay Equitursay
http://alt.textdrive.com/