ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From christoforever <christofore...@gmail.com>
Subject Regular expression for deleting new lines with Ant
Date Thu, 19 Nov 2009 18:19:57 GMT

I'm trying to remove all the new lines and/or lines full of tabs or white
space from a file ... its not working however... I've used the following
code.

					<replaceregexp file="${outputFile}"
									match="^[ \t\n]+$"
									replace=""
									byline="true"/>


but I've got nothing. I originally posted on the coderanch forums
(http://www.coderanch.com/t/471737/Ant-Maven-Other-Build-Tools/Regular-expression-deleting-new-lines)
and have gotten no reply so I've come here for help... any ideas?
-- 
View this message in context: http://old.nabble.com/Regular-expression-for-deleting-new-lines-with-Ant-tp26421426p26421426.html
Sent from the Ant - Users mailing list archive at Nabble.com.


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


Mime
View raw message