« Return to Thread: Trim leading spaces line by line

RE: Trim leading spaces line by line

by Harnack Frank-2 :: Rate this Message:

Reply to Author | View in Thread

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@...]
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@... For additional
commands, e-mail: user-help@...


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

 « Return to Thread: Trim leading spaces line by line