ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Beims Bob-RWBC70" <>
Subject RE: ReplaceRegExp installation / invocation help
Date Tue, 07 Nov 2006 20:05:12 GMT

Thanks for the hints.  I changed the pattern in my Ant build file to:

  <regexp pattern="(&lt;img src=&quot;)([^\.]+\.svg)(&quot;\/?&gt;)"/>

In my log file, I now get this result:

  [replaceregexp] Replacing pattern '(<img src=")([^\.]+\.svg)("\/?>)' 
                  with '<embed src="\2" type="image/svg+xml"></embed>' 
                  in 'D:\ditaot_out\xhtml\blocks\RS08ADC8\Backup 1 of
                  with flags: 'g'.
  [replaceregexp] Found match; substituting
  [replaceregexp] File has changed; saving the updated file

So you were right ... I was escaping characters where I didn't need to.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message