#1 : 26/01-19 19:29 clouless
Posts: 4
|
How to remove year in folder tittle and subfolder?
Is there an option to get rid of Digits all together? |
#2 : 26/01-19 22:18 David Lee
Posts: 1125
|
Reply to #1:
Try giving us some idea of what you want to do - including an example. |
#3 : 27/01-19 01:11 clouless
Posts: 4
|
Reply to #2:
ex. folder Name: Movie_name xyz 2001 Inside Folder: Movie_name xyz 2001.mkv Movie_name xyz 2001.English.srt Movie_name xyz 2001.nfo Movie_name xyz 2001 DVD Cover.jpg Subfoder: Language srt Movie_name xyz 2001. French,srt How to remove 2001 or put 2001 like this(2001) with parenthesis |
#4 : 27/01-19 19:10 L B
Posts: 74
|
Reply to #3:
You can do this using RegEx and the Replace method. Assuming that the year will always be YYYY and not YY: Text to be replaced : (.*)(\d{4})(.*) Replace with : \1 \3 Use Regular Expressions : Ticked Please note that if the year is part of the movie name, like say, Bread Slicer 2049, then you will have to modify the method to mention the value of "Occurrence". |
#5 : 29/01-19 02:10 clouless
Posts: 4
|
Reply to #4:
Thank you but how to remove also the space in front of the year and also how to removed the same year in the title of the main folder Movie_name xyz 2001? I tried to add an other replace with text to be replaced " ." replace with "." but no joy and also because I am curious what is the exact meaning of the expressions (.*)(\d{4})(.*) and \1 \3 |
#6 : 29/01-19 09:59 David Lee
Posts: 1125
|
Reply to #5:
RTFM! Read the introduction to Regular Expressions in the ARen User Guide: www.advancedrenamer.com/user_guide/regular_expresions That should answer at least some of your questions. |
#7 : 30/01-19 03:41 clouless
Posts: 4
|
Reply to #6: like you said
The FM part you referred me to is not easy to grasp if you are not a nerd Sorry for asking |
#8 : 30/01-19 11:38 L B
Posts: 74
|
Reply to #7:
ARen manuals are as easy to understand as they come. Anyway, use "\1\3" instead of "\1 \3", see if it helps. |
#9 : 30/01-19 11:49 David Lee
Posts: 1125
|
Reply to #7:
You basically are asking us to repeat what has already been provided for you by Kim in the User Guide! I repeat: Read the introduction to Regular Expressions in the ARen User Guide: www.advancedrenamer.com/user_guide/regular_expresions That should answer at least SOME of your questions. Aspects of Regular Expressions do take a bit of effort to grasp - I too did not have a clue how to use them before I discovered Advanced Renamer, just a few months ago. If you still find yourself stuck on some difficult aspects then post here again, but you must demonstrate that you have made at least some effort yourself. |