lua-users home
lua-l archive

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


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>

how do i find the pattern in this case ?

--
SANTHO
twitter : @sam34_


Message: 1
Date: Wed, 11 Apr 2012 18:50:08 +0200
From: "Thijs Schreijer" <thijs@thijsschreijer.nl>
Subject: RE: multi line string search
To: "'Lua mailing list'" <lua-l@lists.lua.org>
Message-ID: <120c01cd1803$27ad9bf0$7708d3d0$@nl>
Content-Type: text/plain; charset="us-ascii"

> From: lua-l-bounces@lists.lua.org [mailto:lua-l-bounces@lists.lua.org] On
Behalf Of SAN THO
> Sent: woensdag 11 april 2012 18:20
> To: lua-l@lists.lua.org
> Subject: multi line string search

>

> I have a multiline string chunk of more than 8000 characters. I want to
look for a particular string inside it.
> Can anyone please help me out to resolve it, i tried string functions but
it was giving me wrong result.



Can you be more specific, a sample case maybe, otherwise I would just be
retyping the manual here...



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://vlists.pepperfish.net/cgi-bin/mailman/private/lua-l-lists.lua.org/attachments/20120411/b35deb89/attachment-0001.html

------------------------------