Hi, HORA/Lionnel_FERRATON wrote:
> I want to take a text beetween 2 words (say START and END). > Ex : START blabla blabla blabla END > I use the following rexexp > %SETPATTREGEXP="(?ism)(.*)(START)(.*)(END)(.*)" > All is fine if i have only one END in my text but if thers is two or > more, i have all the text beetween START and the last END > How can i tell the bat to "stop" at the first 'END' ???? Your problem is called 'greedy matching' try non-greedy matching by replacing ".*" with ".?" Regards, Markus -- Using The Bat! 1.54 RC/1 under Windows NT 4.0 Build 1381 Service Pack 6 ________________________________________________________ Current Ver: 1.53d FAQ : http://faq.thebat.dutaint.com Unsubscribe: mailto:[EMAIL PROTECTED] Archives : http://tbudl.thebat.dutaint.com Moderators : mailto:[EMAIL PROTECTED] TBTech List: mailto:[EMAIL PROTECTED]

