lua-users home
lua-l archive

Re: Preg-match alternative in Lua

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


>
> I'm afraid I'm not quite sure I understand, but does the following do what you mean by "extract a set of data"?
I think, you understand well.
> Lua 5.1.4  Copyright (C) 1994-2008 Lua.org, PUC-Rio
>> =("test a123a test"):match("a(%d+)a")
> 123
I want only this type of thing.
I hope it will serve my purpose.
Thanks a ton. :-)
-- 
Sandeep Ghai
blog: http://sandeepghai.wordpress.com

AltStyle によって変換されたページ (->オリジナル) /