You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2003/03/05 09:13:25 UTC
DO NOT REPLY [Bug 17660] New: -
additional example for
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17660>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17660
additional example for <replaceregexp>
Summary: additional example for <replaceregexp>
Product: Ant
Version: 1.6Alpha (nightly)
Platform: Other
URL: http://cvs.apache.org/viewcvs.cgi/*checkout*/ant/docs/ma
nual/OptionalTasks/replaceregexp.html?rev=1.13
OS/Version: Other
Status: NEW
Severity: Normal
Priority: Other
Component: Documentation
AssignedTo: dev@ant.apache.org
ReportedBy: jan@materne.de
On the user-list (http://marc.theaimsgroup.com/?l=ant-
user&m=104680092326232&w=2) there was a discussion how to get rid off multiple
whitespaces. As far as I know this wasn�t for the first time. So an additional
example could help:
<pre><replaceregexp match="\s+" replace=" " flags="g" byline="true">
<fileset dir="${html.dir}" includes="**/*.html" />
</replaceregexp>
</pre>
<p>replaces all whitespaces (blanks, tabs, etc) by one blank remaining the
line separator. So with input
<pre>
<html> <body>
<<TAB>><h1> T E S T </h1> <<TAB>>
<<TAB>> </body></html>
</pre>
would converted to
<pre>
<html> <body>
<h1> T E S T </h1> </body></html>
</pre>