Delete all Characters up to a certain Character from File Names
Question by Mail Request | 2021-03-23 at 09:27
I would like to delete all other characters from the name of a file up to a certain character (example -).
Before: abc-def.ext After: def.ext
Is that possible somehow?
Related Topics
MySQL: Delete Data from Table - Difference between TRUNCATE, DELETE and DROP
Tutorial | 0 Comments
Rename File to its Folder Name
Tutorial | 0 Comments
PHP: Check Strings with Ctype-Functions for Character Classes
Article | 0 Comments
JavaScript: Remove last character from string
Tip | 5 Comments
Rewrite Text Files with a fixed Line Length
Tutorial | 0 Comments
PHP: Remove arbitrary Characters at the Beginning and the End of a String
Tutorial | 0 Comments
Important Note
Please note: The contributions published on askingbox.com are contributions of users and should not substitute professional advice. They are not verified by independents and do not necessarily reflect the opinion of askingbox.com. Learn more.
Participate
Ask your own question or write your own article on askingbox.com. That’s how it’s done.
That is possible with the File Renamer, for example with regular expressions:
In the Search and Replace function:
And don't forget to tick the box next to "Interpret as regular expression".
Important: Since the minus sign - is a character with special meaning within regular expressions, we write \- to escape the character. If this is not the case, for example if we want to delete everything up to an x, the following is sufficient: .*?x(.*)
2021-03-23 at 15:24