PtokaX forum

Development Section => Your Developing Problems => Topic started by: Leun on 27 January, 2008, 21:58:49

Title: Pattern problem
Post by: Leun on 27 January, 2008, 21:58:49
Morning,

What is the right pattern match for the code below?

Code: [Select]
for arg,value in string.gmatch(sLine,"(%b[])=(%b"")") do


Get this error:
[21:36] Syntax vliegen/bancatch.lua:209: ')' expected near '")"

I try to find all data between the " and "

example:
["Message"]= "Warn who [uu.nl]double_trouble(155.06 Gb), minshare 100 Gb for movies\\Mr. & Mrs. Smith (2005)\\s"

greetz
Title: Re: Pattern problem
Post by: Leun on 27 January, 2008, 22:27:39
Thnx Mutor !!
I'll give it a try :P

Greetz
Title: Re: Pattern problem
Post by: Leun on 27 January, 2008, 22:34:45
Thnx a lot Mutor!!

I get it work now:
I changed the function a little bit..
But the pattern is working :P
Code: [Select]
for arg,value in string.gmatch(sLine,"(%b[])=(%b\"\")") do

greetz,
Leun
Title: Re: Pattern problem
Post by: Leun on 27 January, 2008, 22:43:18
lol no its fine so.

My question wasn't clear I think, but your advise helped me out :D

thnx