ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erica Ramsey" <ericarams...@gmail.com>
Subject replaceregex
Date Thu, 14 Jun 2007 20:44:08 GMT
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!

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message