Multi rename, remove last characters
Moderators: Hacker, petermad, Stefan2, white
-
- Junior Member
- Posts: 62
- Joined: 2003-04-11, 07:46 UTC
- Location: Denmark
Multi rename, remove last characters
Hi, i'm using TC 6.02, and haven't figured out how to remove the last 13 characters during multi-rename of the names below:
DFT90S4_031217170142.sat
R47DT90s4_031027154806.sat
R47DT90s4_031027155258.sat
R47DT90s4_031027155540.sat
SHF37dt80k4_031217151945.sat
The part of the name starting with "_" and the rest, that means the last 13 characters (which is an irrelevant timestamp), I often have to remove. As I see the Range option doesn't have any solution for that.
I often need to do this kind of rename, so I hope for a solution
regards Lars
DFT90S4_031217170142.sat
R47DT90s4_031027154806.sat
R47DT90s4_031027155258.sat
R47DT90s4_031027155540.sat
SHF37dt80k4_031217151945.sat
The part of the name starting with "_" and the rest, that means the last 13 characters (which is an irrelevant timestamp), I often have to remove. As I see the Range option doesn't have any solution for that.
I often need to do this kind of rename, so I hope for a solution
regards Lars
Best regards
Lars
Lars
Try to check RegEx and put into:
"Search for:" box - (.*?)_(.*?)\.(.*)
"Replacew with:" box - $1.$3
File name: [N]
Extension: [E]
"Search for:" box - (.*?)_(.*?)\.(.*)
"Replacew with:" box - $1.$3
File name: [N]
Extension: [E]
Last edited by djk on 2004-09-10, 10:08 UTC, edited 1 time in total.
2Raymond
It's really useful sometimes.
There is a nice "first steps guide" to regular expressions on forum of Poptray:
http://forum.poptray.org/viewtopic.php?t=1626
It's really useful sometimes.

There is a nice "first steps guide" to regular expressions on forum of Poptray:
http://forum.poptray.org/viewtopic.php?t=1626
-
- Junior Member
- Posts: 62
- Joined: 2003-04-11, 07:46 UTC
- Location: Denmark
Lefteous wrote:2LarsSandberg
Here is another solution without using RegEx:
Insert for filename [N-256-14]
Somehow [N1--14] seems a better solutionLefteous wrote:My idea is based on a help file example ([N-8-5]). I have adapted it for the concrete task keeping in mind that filename lengths have currently a maximum of 256 characters.From where did you get that idea? Or is this documented anywhere?
