lua-users home
lua-l archive

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




On 12.04.2012 11:51, SAN THO wrote:
Hello,

   I was looking for a multi line string search for a specific pattern,
Following is an example :

local str="this is sample text with lots of symbols [test]<test>*test* and it's multiline too [10,000 words]"
   local pattern=<test>


Use str:find("<test>", 1, true) for plain string search.

--
Best regards,
Sergey Rozhenko                 mailto:sergroj@mail.ru