ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Harnack Frank" <Frank.Harn...@bitmarck.de>
Subject RE: Trim leading spaces line by line
Date Tue, 10 Mar 2009 10:37:37 GMT
Hello Felix,

I'm more confident with "^\s*" (or better "^\s+") too.

I prefer "^\s+", because it only matches with really existing spaces. 

Maybe "\s*" works like this:

- Not existing whitespaces at the beginning of the line matches with
"\s*".
- The not existing whitespaces are replaced with "".
- Nothing is done.

Regards

Frank

-----Original Message-----
From: Felix Dorner [mailto:FDorner@zed.com] 
Sent: Tuesday, March 10, 2009 10:53 AM
To: Ant Users List
Subject: RV: Trim leading spaces line by line

Heya,

I confirm that both alternatives work. However, I'm more confident with
"^\s*", and don't see why "\s*" works...
 
Felix
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional
commands, e-mail: user-help@ant.apache.org


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


Mime
View raw message