Pattern problem
 

News:

11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

Pattern problem

Started by Leun, 27 January, 2008, 21:58:49

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Leun

Morning,

What is the right pattern match for the code below?

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

Leun

Thnx Mutor !!
I'll give it a try :P

Greetz

Leun

#2
Thnx a lot Mutor!!

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


greetz,
Leun

Leun

lol no its fine so.

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

thnx

SMF spam blocked by CleanTalk