Hi
Is it possible to create an action that will remove leading chars until first number in a filename is met?
Example:
garbage_more_garbage_1_Hello_world.mp3
should be converted to:
1_Hello_world.mp3
Kind regards
HHDM
Hi
Is it possible to create an action that will remove leading chars until first number in a filename is met?
Example:
garbage_more_garbage_1_Hello_world.mp3
should be converted to:
1_Hello_world.mp3
Kind regards
HHDM
Provided that the leading garbage part contains no number, then it should be easy, otherwise there is some sort of manual iteration needed.
What action expression did you have tried so far?
Are the underline characters part of the filename?
DD.20090718.1715.CEST
I'm new to regular expressions, so I've only tried basic search and replace expressions, what I need is a way to stop, once the search meets the first digit.
The garbage part contains no numbers.
The underline chars are part of the file name.
Well, then try this:
Actiontype 5: Format tag field
Field: _FILENAME
Formatstring: $regexp(%_FILENAME%,'^[^\d]+(.*)',$1)
Make sure to select only filenames which match the condition and then run the action against the selection.
DD.20090718.1748.CEST
Perfect - thank you very much