ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scot P. Floess" <flo...@mindspring.com>
Subject Re: replaceregex
Date Thu, 14 Jun 2007 20:56:48 GMT
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@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message