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:fdor...@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-unsubscr...@ant.apache.org For additional
commands, e-mail: user-h...@ant.apache.org


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

Reply via email to