Removing numbers from FILENAME


#1

I'm sure there's a more efficient way to do this but my method seems to work up to a point. I use "REPLACE FILENAME n with "" ", where n is the numbers 0-9 and is repeated individually for each number.

However, here's the problem. When n = 3, then "Song Name.mp3" gets changed to "Song Name.mp". Not good!

Any ideas, solutions, elations or even admonishments would be appreciated.


#2

You can try Replace with Regular Expression


#3

OK Florian, I give up!

Using your suggestion, my ZERO programming abilities and the use of this Forum's Search feature regarding the use/syntax of the "Replace with Regular Expression", I managed to try many permutations that only served to confuse me more and more. By the way, none of my feeble attempts worked!

Basically I have no idea what I'm doing so can you please give me some hint(s) as to the solution?


#4

Make a new action

Action type: Format value
Field: _FILENAME
Format string: $regexp(%_filename%,\d,)


#5

THANK YOU!!!

Hopefully, one of these days I will have learned enough to not have to use this forum to seek help but rather to help others just as "lost" as me.

Thank you once again...