diff --git a/docs/manual/OptionalTasks/replaceregexp.html b/docs/manual/OptionalTasks/replaceregexp.html index 93017106c..f7fe649be 100644 --- a/docs/manual/OptionalTasks/replaceregexp.html +++ b/docs/manual/OptionalTasks/replaceregexp.html @@ -128,6 +128,26 @@ value, in the file ${src}/build.properties

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-2003 Apache Software Foundation. All rights Reserved.