[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: pcre regex with capture
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Thu, 22 Jul 2010 13:28:41 -0300
> -- or with Lua string library:
> local c = string.match(text, "<myMarker>(.-)</myMarker>")
If you don't know the tag name, you can use
local n,c = string.match(text,"<(%w+)>(.-)</%1>")