ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lou Fox" <lou...@cloud9.net>
Subject Problems with ReplaceRegex
Date Thu, 20 Jun 2002 18:23:12 GMT
I've been trying to get this replaceregex to work for several days now without any progress.
 I even wrote the exact same regex in perl and it worked just fine, could someone please look
into this for me.
Here is the replaceregexp that I'm using:
  <fileset id="unzippedfiles" dir="${tmpdir}" />
  <replaceregexp 
   byline="true"
   flags="i"
   match="^.*\.(gif|jpg|js|ram)\^.*\r\n"
   replace="">
   <fileset refid="unzippedfiles" />
  </replaceregexp>

Currently it doesn't match at all.  If I remove the \r\n, then it removes the text from the
line, and leaves the \r\n.  Adding the flags="s" doesn't change the behavior at all.  Using
\\r\\n or \n or \\n doesn't match at all.

My CLASSPATH is .\;D:\java\jakarta-oro-2.0.6\jakarta-oro-2.0.6.jar;D:\java\xerces-2_0_1\tools\xerces.jar;d:\j2sdk1.4.0\jre\lib\rt.jar



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