ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lou Fox" <lou...@cloud9.net>
Subject Fw: trouble with replaceregexp
Date Tue, 18 Jun 2002 18:35:52 GMT
 I would like to remove lines from a log file.  I'm able to remove all the
 text from lines that match my regex, however the an empty line remains for
 each of these matches.

 I'm using jdk1.4.0, and in my CLASSPATH I has
 D:\java\jakarta-oro-2.0.6\jakarta-oro-2.0.6.jar

 <replaceregexp
    byline="true"
    flags="i,s"
    match="^.*\.(gif|jpg|js|ram)\^.*"
    replace="">
    <fileset refid="unzippedfiles" />
   </replaceregexp>

 Any suggestions?

 P.S. I also had a lot of trouble doing a negation match.  For
 example, I was originally tried:
 ^.*\.[^(process|tem|htm|html)]\^.*$

 By a process of elimination I found that once [] was added, the resulting
 matches didn't seem to make sense.


--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message