| replaceregex | replaceregex 2007-06-15 - By Scot P. Floess
My apologies. Clearly your email didn't describe what you did at all... The way it was worded didn't express that information. I see you have posted some information in a subsequent email...
Erica A Ramsey wrote: > Of course I tested it but it is failing. can someone tell me what is wrong? > > -----Original Message----- > From: Scot P. Floess [mailto:floess@(protected)] > Sent: Thursday, June 14, 2007 3:57 PM > To: Ant Users List > Subject: Re: replaceregex > > > I don't mean to sound smart...but have you tried it? Run a test? > > It might be time better spent if you run a test, it fails then email the > list? > > Erica Ramsey wrote: > >> hello, will the following example replace everything between '#example >> ' and >> '#end example.*' ? I am trying to strip the following from a file; >> >> #example -- do not remove this line! >> test1 #comment >> test2 >> $ >> test3 #another comment >> . >> #end example -- do not remove this line! >> >> everything between '#example' and '#end example.*' must be stripped out. >> >> here is my expression: >> <replaceregex pattern="#example(\n.)+#end example.*" replace="" >> flags="g" /> >> >> Thanks! >> >> > > -- > Scot P. Floess > 27 Lake Royale > Louisburg, NC 27549 > > 252-478-8087 (Home) > 919-392-6730 (Work) > > Chief Architect JPlate http://sourceforge.net/projects/jplate > Chief Architect JavaPIM http://sourceforge.net/projects/javapim > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@(protected) > For additional commands, e-mail: user-help@(protected) > > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.472 / Virus Database: 269.8.15/848 - Release Date: 6/13/2007 > 12:50 PM > > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.5.472 / Virus Database: 269.8.15/848 - Release Date: 6/13/2007 > 12:50 PM > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@(protected) > For additional commands, e-mail: user-help@(protected) > > >
-- Scot P. Floess 27 Lake Royale Louisburg, NC 27549
252-478-8087 (Home) 919-392-6730 (Work)
Chief Architect JPlate http://sourceforge.net/projects/jplate Chief Architect JavaPIM http://sourceforge.net/projects/javapim
|
|
 |