ant-user mailing list archives

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

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
Block_Diagram.html' 
                  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.

Regards,
Bob

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message