Replace

Advanced Renamer forum
#1 : 20/01-21 15:42
Spo0cky
Spo0cky
Posts: 1
Hello guys,

I would like to rename several files that are continuously inside the folder.

For example:

Bob Ross - A Cold Spring Day (Season 30 Episode 11) (480p_30fps_H264-128kbit_AAC)
Bob Ross - A Perfect Winter Day (Season 29 Episode 11) (480p_30fps_H264-128kbit_AAC)

in

Bob Ross S30E11 A Cold Spring Day (480p_30fps_H264-128kbit_AAC)
Bob Ross S29E11 A Perfect Winter Day (480p_30fps_H264-128kbit_AAC)

I don't quite get it yet.
Therefore I would be grateful for any help.


Spo0cky


20/01-21 15:42
#2 : 22/01-21 00:05
David Lee
David Lee
Posts: 1125
Sorry - your question does not make any sense. Please try to explain more clearly what you are trying to do.


22/01-21 00:05
#3 : 22/01-21 11:53
David Lee
David Lee
Posts: 1125
Reply to #2:
If you are tryng to say that you just want to replace:

Bob Ross - A Cold Spring Day (Season 30 Episode 11) (480p_30fps_H264-128kbit_AAC)
Bob Ross - A Perfect Winter Day (Season 29 Episode 11) (480p_30fps_H264-128kbit_AAC)

with:

Bob Ross S30E11 A Cold Spring Day (480p_30fps_H264-128kbit_AAC)
Bob Ross S29E11 A Perfect Winter Day (480p_30fps_H264-128kbit_AAC)

then use the Replace method...

Replace: (.* )- ([^\(]*) \(Season (\d+) Episode (\d+)\)
with: \1S\3E\4\2
Use regular expressions

Should be obvious if you read the User Guide!

https://www.advancedrenamer.com/user_guide/regul ar_expresions


22/01-21 11:53