Text Trim

Advanced Renamer forum
#1 : 06/09-24 10:34
Nashaat Akeel
Posts: 3
Hello,

How can I trim only a specific text and number " 01AUG24" and " 12AUG24" from below files name ends?


20240801_7 58 COUPLING REPLACEMENT MER 3216 SDO NFQ-20-11 01AUG24
20240812_10 34 COUPLING REPLACEMENT MER 3236 12AUG24

edited: 06/09-24 10:48
#2 : 06/09-24 13:25
Miguel
Posts: 163
Reply to #1:
Hi Nashaat,
There are various ways to get that.
If the text to trim always has the same number of characters use this method.

REMOVE:
Remove count: 8
Starting at: 1
Check Backwards.

If the number of characters can vary, then it is better to use the following method.
REPLACE: ^(.+)\s.+$
REPLACE WITH: $1
Use regular expression: Yes
Apply to name

Miguel


edited: 06/09-24 13:31
#3 : 06/09-24 13:58
Nashaat Akeel
Posts: 3
Reply to #2:

Dear Miguel,

Your help was a lifesaver! thanks a lot for your help.
You answered my question perfectly.

How can I learn all of these tricks? Is there any guidance available within the software?

edited: 06/09-24 14:00
#4 : 06/09-24 14:42
Miguel
Posts: 163
Reply to #3:
Glad to help you.
Yes, you can use the User Guide.
https://www.advancedrenamer.com/user_guide/v3/ge ttingstarted

Miguel