Regex Rule For Windows Bulk Rename

45 views
Skip to first unread message

Travis Clark

unread,
Nov 26, 2024, 1:19:58 AM11/26/24
to TV Rename
Hello all! Looking for some help with a filename processor rule. I have no experience with Regex and have fired my AI assistants out of frustration. Sometimes, I have a TV show with crazy, unrecognizable file names and to clean it up I'll do a bulk rename where Windows will add a serial (n) to the name of each file. I'll end up with a clean list with a show title, season, and episode number that TV Rename can't recognize any better than the jumbled garbage I started with. For example, I'd like to input American Dad S01 (1).mkv and have it renamed standard American Dad S01E01 - Pilot.mkv. Another example: American Dad S05 (12).mkv = American Dad S05E12 - Roy Rogers McFreely.mkv. I'd be interested if there's an easier way too. Thanks!

TV Rename

unread,
Nov 26, 2024, 9:40:01 PM11/26/24
to TV Rename

https://regex101.com/r/pB8qLD/1  Should help - add it to Filename Processors

Travis Clark

unread,
Nov 27, 2024, 5:31:50 AM11/27/24
to TV Rename
Thanks for the help!
Copied it to Filename Processors. It's recognizing the show and season, but not the episode. Running a scan returns nothing but unmatched results.  Screenshot 2024-11-27 022838.png

Travis Clark

unread,
Nov 28, 2024, 2:30:58 AM11/28/24
to TV Rename
I figured it out with a little AI help. Thanks again! For anyone interested:   S(?<s>[0-9]{1,2})E(?<e>[0-9]{1,2})|\s*(?<s>[0-9]{1,2})\s*\((?<e>[0-9]{1,})\)
Reply all
Reply to author
Forward
0 new messages