From jordan.marton at gmail.com Thu Jan 4 01:49:56 2007 From: jordan.marton at gmail.com (Jordan Marton) Date: Wed, 3 Jan 2007 20:49:56 -0500 Subject: [regex-coach] Regular Expression Help In-Reply-To: <25838909.20061231203713@wir-vermessen.de> References: <25838909.20061231203713@wir-vermessen.de> Message-ID: Any idea if I am doing somehting wrong? The expression works great in Regex Coach, but once in ASP.NET 2.0, it freezes on the myRegex.Match command... Dim oM As Match Dim myRegex As Regex myRegex = New Regex("(?m-si)(?>).*)*INTRODUCTION)(?s).+?") oM = myRegex.Match(strReport) strReport = Replace(strReport, oM.Value, "Blah") On 12/31/06, Thomas W?lk wrote: > * Jordan Marton writes: > > > Here is my current attempt: > > .*(?=).*(?=INTRODUCTION).*(?=).*? > > Just a fleeting thought... > > (?ims).*\n(.*?(?=\[INTRODUCTION\]).*?) > > -- > Thomas. > > _______________________________________________ > regex-coach site list > regex-coach at common-lisp.net > http://common-lisp.net/mailman/listinfo/regex-coach > From bpatton at ti.com Thu Jan 4 17:16:21 2007 From: bpatton at ti.com (Billy Patton) Date: Thu, 04 Jan 2007 11:16:21 -0600 Subject: [regex-coach] hanging Message-ID: <459D3665.4070501@ti.com> Trying to use regex to determine if my regexp are correct. When I use the shortened version it works fine. The long version hangs. The short version: relatedLayers=>\[([^,]+,?)+\],y=>1,z=>2 relatedLayers=>[MET1,MET2,MET3,MET4,MET5,], The long version ^boolean=>[ao][rn]d?,comment=>[^,]+,intraFigure=>[01],layer=>[^,]+,relatedLayers=>\[([^,]+,?)+\],relatedSpace=>\d+,square=>[01],value=>\d+$ boolean=>and,comment=>comment,intraFigure=>1,layer=>MET1,relatedLayers=>[MET2,MET3,MET4,MET4],relatedSpace=>20,square=>0,value=>50 I'm running v 0.9.0 on a Dell M65 (intel Core Duo ) From edi at agharta.de Fri Jan 5 01:54:20 2007 From: edi at agharta.de (Edi Weitz) Date: Fri, 05 Jan 2007 02:54:20 +0100 Subject: [regex-coach] hanging In-Reply-To: <459D3665.4070501@ti.com> (Billy Patton's message of "Thu, 04 Jan 2007 11:16:21 -0600") References: <459D3665.4070501@ti.com> Message-ID: On Thu, 04 Jan 2007 11:16:21 -0600, Billy Patton wrote: > Trying to use regex to determine if my regexp are correct. When I > use the shortened version it works fine. > The long version hangs. > The short version: > relatedLayers=>\[([^,]+,?)+\],y=>1,z=>2 > relatedLayers=>[MET1,MET2,MET3,MET4,MET5,], This doesn't match for me (assuming the first line is supposed to be the regular expression and the second line is supposed to be the target string). > The long version > ^boolean=>[ao][rn]d?,comment=>[^,]+,intraFigure=>[01],layer=>[^,]+,relatedLayers=>\[([^,]+,?)+\],relatedSpace=>\d+,square=>[01],value=>\d+$ > > boolean=>and,comment=>comment,intraFigure=>1,layer=>MET1,relatedLayers=>[MET2,MET3,MET4,MET4],relatedSpace=>20,square=>0,value=>50 This does match. It doesn't hang, though - everything is working fine. How exactly does it hang for you? It doesn't accept input anymore? CPU usage is very high? Cheers, Edi. From edi at agharta.de Tue Jan 9 14:49:46 2007 From: edi at agharta.de (Edi Weitz) Date: Tue, 09 Jan 2007 15:49:46 +0100 Subject: [regex-coach] hanging In-Reply-To: <459E373C.90400@ti.com> (Billy Patton's message of "Fri, 05 Jan 2007 05:32:12 -0600") References: <459D3665.4070501@ti.com> <459E373C.90400@ti.com> Message-ID: [Please use the mailing list.] On Fri, 05 Jan 2007 05:32:12 -0600, Billy Patton wrote: > After I type the \] it hangs. The little hour glass is visible. > I've let it set for 15 minutes. The little glass never reappears. > I'm guessing that it has to do with the [^,] I should probably use > all displayable characters in a [] , all but the ',' Hmm. As I said, I can't reproduce this - it doesn't hang for me. Sorry... From edi at agharta.de Wed Jan 17 10:47:38 2007 From: edi at agharta.de (Edi Weitz) Date: Wed, 17 Jan 2007 11:47:38 +0100 Subject: [regex-coach] New release 0.9.1 Message-ID: ChangeLog: Version 0.9.1 2007-01-17 upgraded to LispWorks 5.0.1 upgraded to CL-PPCRE 1.2.19 (see ) Download: http://weitz.de/files/regex-coach.exe Cheers, Edi. From snarkhx at yahoo.com.br Fri Jan 26 13:23:34 2007 From: snarkhx at yahoo.com.br (=?ISO-8859-1?Q?=22Cl=E1udio_B=2E=22?=) Date: Fri, 26 Jan 2007 11:23:34 -0200 Subject: [regex-coach] It's possible to replacing transforming in lowercase? Message-ID: <45BA00D6.7000905@yahoo.com.br> I try to use \L do use replacement string in lowercase. How to use this in regex coach ? _______________________________________________________ Yahoo! Mail - Sempre a melhor op??o para voc?! Experimente j? e veja as novidades. http://br.yahoo.com/mailbeta/tudonovo/ From edi at agharta.de Sat Jan 27 22:06:32 2007 From: edi at agharta.de (Edi Weitz) Date: Sat, 27 Jan 2007 23:06:32 +0100 Subject: [regex-coach] It's possible to replacing transforming in lowercase? In-Reply-To: <45BA00D6.7000905@yahoo.com.br> =?iso-8859-1?q?=28Cl=E1udio?= B.'s message of "Fri, 26 Jan 2007 11:23:34 -0200") References: <45BA00D6.7000905@yahoo.com.br> Message-ID: On Fri, 26 Jan 2007 11:23:34 -0200, "Cl?udio B." wrote: > I try to use \L do use replacement string in lowercase. How to use > this in regex coach ? There's no way to do this in the Regex Coach yet, sorry.