MultiRenameTool: remove leading space

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Michael REMY
Senior Member
Senior Member
Posts: 202
Joined: 2010-12-12, 10:05 UTC
Location: Amiens

MultiRenameTool: remove leading space

Post by *Michael REMY »

hi,

i often have multiple space in the head of my filename when i do error while renaming.

how can i remove the leading space with rename tool ? i am not very suit with regular expression.
TC's multiple rename tool whould have "templates" or " predefined schemes" to use easily in a combo list choice like:
"leading character remove"
"each number remove"
"each lower case remove"
"each uppercase remove" and when we select on, them we could just change the character to target by the remove operation

best regards
i'm an old long user of TC since the windows 3.11 release !, for the history, i came to tc when i migrate from amiga commodore to PC where they are diskmanager and directory opus there.
User avatar
ZoSTeR
Power Member
Power Member
Posts: 1052
Joined: 2004-07-29, 11:00 UTC

Post by *ZoSTeR »

RegeEx to remove leading spaces:

^\s*
<remove>
User avatar
Stefan2
Power Member
Power Member
Posts: 4281
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Post by *Stefan2 »

TRY

Search: ^\s+
Replace: <Clear>
[X] RegEx


Press F1 key for help and click at 'regular expressions' for more.

Use F2 load/save settings to store this for later use.




And, as I saw, on copying the leading spaces are gone also.
Michael REMY
Senior Member
Senior Member
Posts: 202
Joined: 2010-12-12, 10:05 UTC
Location: Amiens

Post by *Michael REMY »

Stefan2 wrote:TRY

Search: ^\s+
Replace: <Clear>
[X] RegEx


Press F1 key for help and click at 'regular expressions' for more.

Use F2 load/save settings to store this for later use.




And, as I saw, on copying the leading spaces are gone also.
thanks
i'm an old long user of TC since the windows 3.11 release !, for the history, i came to tc when i migrate from amiga commodore to PC where they are diskmanager and directory opus there.
Post Reply