Actions and batch-operations

How to remove a certain number of leading chars?

In order to remove some leading characters from the filename or a tag field, create a new action in an existing action group and choose Replace with regular expression as action type.

  • Field: choose where you want to remove the chars.
  • Regular expression: enter ^.{3} if you want to remove 3 chars.
  • Replace matches with stays empty.

You can enter the number of chars to be removed between the two curly brackets.

To remove the last 3 characters use .{3}$ (but do not use this on _FILENAME as it would remove the file extension).

2 Likes