Hi HORA/Lionnel_FERRATON, On Thu, 21 Mar 2002 16:53:40 +0100, you wrote:
> I want to take a text beetween 2 words (say START and END). > %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' ???? Try (?ism)(.*)(START)(.*?)(END)(.*) ^ BTW: If you need only the text between START/END you could also write: (?ism).*START(.*?)END.* ^ Than the result are in subpattern 1 cu, Dirk -- Using The Bat! 1.54 RC/1 (S/N 12A1F196 / Educational) under Windows 95 4.0 Build 1111 B ________________________________________________________ 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]