Return-Path:
Mailing-List: contact dev-help@ant.apache.org; run by ezmlm
Delivered-To: mailing list dev@ant.apache.org
Received: (qmail 68020 invoked by uid 500); 19 Mar 2003 08:41:31 -0000
Received: (qmail 68017 invoked from network); 19 Mar 2003 08:41:30 -0000
Received: from icarus.apache.org (208.185.179.13)
by daedalus.apache.org with SMTP; 19 Mar 2003 08:41:30 -0000
Received: (qmail 70981 invoked by uid 1146); 19 Mar 2003 08:41:29 -0000
Date: 19 Mar 2003 08:41:29 -0000
Message-ID: <20030319084129.70980.qmail@icarus.apache.org>
From: bodewig@apache.org
To: ant-cvs@apache.org
Subject: cvs commit: ant/docs/manual/OptionalTasks replaceregexp.html
X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
bodewig 2003/03/19 00:41:29
Modified: docs/manual/OptionalTasks Tag: ANT_15_BRANCH
replaceregexp.html
Log:
Add another example to replaceregexp's docs.
PR: 17660
Submitted by: Jan Mat�rne
Revision Changes Path
No revision
No revision
1.8.2.4 +21 -1 ant/docs/manual/OptionalTasks/replaceregexp.html
Index: replaceregexp.html
===================================================================
RCS file: /home/cvs/ant/docs/manual/OptionalTasks/replaceregexp.html,v
retrieving revision 1.8.2.3
retrieving revision 1.8.2.4
diff -u -r1.8.2.3 -r1.8.2.4
--- replaceregexp.html 4 Sep 2002 11:21:14 -0000 1.8.2.3
+++ replaceregexp.html 19 Mar 2003 08:41:29 -0000 1.8.2.4
@@ -123,8 +123,28 @@
with "NewProperty" in a properties file, preserving the existing
value, in all files ending in .properties
in the current directory
+
+<replaceregexp match="\s+" replace=" " flags="g" byline="true">
+ <fileset dir="${html.dir}" includes="**/*.html" />
+</replaceregexp>
+
+replaces all whitespaces (blanks, tabs, etc) by one blank remaining the
+line separator. So with input
+
+
+
+<html> <body>
+<<TAB>><h1> T E S T </h1> <<TAB>>
+<<TAB>> </body></html>
+
+would converted to
+
+<html> <body>
+ <h1> T E S T </h1> </body></html>
+
+
-Copyright © 2001-2002 Apache Software Foundation. All rights
+
Copyright © 2001-2003 Apache Software Foundation. All rights
Reserved.