Regular Expressions and Wildcards by Raistlin

  • Related topics: (no related topics)

User avatar
Raistlin
Hoping somebody can help with this please?

I have dozens of files with the following generic type of file name:- "Program name S01E01 some words.avi"

What I want to do is bulk delete "some words" from each of the files. In reality, the "some words" are all different.

I use a program called "Renamer" but I just can't see how to setup an expression to strip out the unwanted text other than to do each file individually.

Not saying there's a lot of them but at the age of 55 I don't have sufficient life left to do them one at a time :lol:

Any help would be appreciated, thanks :)
Paul

Cogito ergo sum... maybe?

Click the image to go to Nano-Meet Website
Image

Posted 19 Oct 2013, 13:36 #1 

User avatar
persuer
See if this helps Paul.

http://answers.microsoft.com/en-us/wind ... d59c2e4016

Just tried it Paul and it's quick and simple.
Image

Posted 19 Oct 2013, 14:36 #2 

User avatar
Raistlin
I have the program Richard but I can't see how to use it on a group of files with a variable number of words to be removed?


BTW, I have a total of 11000+ files to manipulate :)
Paul

Cogito ergo sum... maybe?

Click the image to go to Nano-Meet Website
Image

Posted 19 Oct 2013, 15:13 #3 

User avatar
persuer
Oh only a couple then :). right you you mean you have a line "Program name S01E01 some words.avi".

and you want to replace the word "name" with "anothername" then remove "s01e01"?
Image

Posted 19 Oct 2013, 15:34 #4 

User avatar
Raistlin
No, it is the "some words" that I need to remove Richard but the words in reality are all different and there are different numbers of them.

However, now having read the manual I can see what I need to do.

Thanks for your help :)
Paul

Cogito ergo sum... maybe?

Click the image to go to Nano-Meet Website
Image

Posted 19 Oct 2013, 15:37 #5 

User avatar
Raistlin
11212 files modified as required in less than 5 minutes :)
Paul

Cogito ergo sum... maybe?

Click the image to go to Nano-Meet Website
Image

Posted 19 Oct 2013, 15:49 #6 

User avatar
persuer
Glad I could help Paul.
Image

Posted 19 Oct 2013, 15:56 #7 

User avatar
Duncan
del *.* would solve the problem quite fast.

I can imagine it might cause others...



(sorry but wildcards always mean * when I think about it)
Image

Posted 19 Oct 2013, 20:25 #8 


Top