Peters Flexible RenAmiNg Kit (PFrank) Forum Index Peters Flexible RenAmiNg Kit (PFrank)
Support and Discussion Site for the PFrank File/Folder Renaming Tool (http://www3.telus.net/pfrank)
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Help with regex file filter to exclude files containing ...

 
Post new topic   Reply to topic    Peters Flexible RenAmiNg Kit (PFrank) Forum Index -> Regular Expressions
View previous topic :: View next topic  
Author Message
eidolen



Joined: 15 Apr 2008
Posts: 11

PostPosted: Thu Apr 17, 2008 8:06 pm    Post subject: Help with regex file filter to exclude files containing ... Reply with quote

I'm beating my head against the wall here. I want to use the regex file filter to ignore files that have certain terms in them. The built-in examples only deal with excluding file extensions, but not file names that match certain strings.

(?ix).*[.] (?! jpg$|gif$|jpeg$|tif$)[^.]*$ # non-picture files only (ignore case)

This is kinda embarassing, but not figuring it out wasn't from a lack of trying. Razz

((?xi).*(?! [ova]|[oav])[.].*$ # any files
(?xi).*(?![ova]|[oav])[.].*$ # any files
(?xi).*(?![ova]|[oav])[.].*$ # any files
(?xi).* (?![ova]|[oav]).*[.].*$ # any files
(?xi).* (?!ova|oav).*[.].*$ # any files
(?xi).* (?! ova|oav).*[.].*$ # any files
(?xi).*(?! ova|oav).*[.].*$ # any files
(?xi).*(?!ova|oav).*[.].*$ # any files
(?xi).*(?!OVA|oav)[.].*$ # any files
(?xi).*(?! OVA|oav)[.].*$ # any files
(?xi).* (?! OVA|oav)[.].*$ # any files
(?xi)^.* (?! OVA|oav)[.].*$ # any files
(?xi)^.* (?!ova|oav)[.].*$ # any files
(?i)^.*(?!ova|oav)[.].*$ # any files
(?xi)^.*(?!.ova.|.oav.)[.].*$ # any files
(?xi)^.*(?! ova|oav)[.].*$ # any files
(?xi)^.*(?!Ova|oav)[.].*$ # any files
(?xi)^.*(?!Ova|oav)[.].* # any files
(?xi).*(?!Ova|oav)[.].* # any files
(?Exi).*(?!Ova|oav).* # any files
(?Exi).*(?!ova|oav).*$ # any files
(?Exi).*(?!ova$|oav$).*$ # any files
(?Exi)\b(?Sad?! Ova)\w)+\b # any files
(?x)\b(?Sad?! Ova)\w)+\b # any files
(?ix).*(?!oav|ova|movie|series|special)[.]*$
(?ix)^.*(?!oav|ova|movie|series|special)[.]*$
(?ix)^.*(?! oav|ova|movie|series|special)[.]*$
(?Eix)^.*(?! avi|mkv|mpg|mpeg|mp4)[.]*$
(?ix).*(?! avi|mkv|mpg|mpeg|mp4)[.]*$
(?ix)^.*(?!avi|mkv|mpg|mpeg|mp4)[.]*$
(?ix)^.*(?! avi|mkv|mpg|mpeg|mp4)[.]*$
(?Eix).*(?!oav|ova|movie|specia|series)*$
(?Eix)(?!oav|ova|movie|specia|series)
(?Eix)(?!oav|ova|movie|specia|series)*.*
(?Eix).*(?!oav|ova|movie|specia|series)
(?Eix)(?!oav|ova|movie|specia|series)[^.]*$
(?Eix).*(?!oav|ova|movie|specia|series)[^.]*$
(?ix).*(?!oav|ova|movie|specia|series)[^.]*$
(?ix).*(?! oav|ova|movie|specia|series)[^.]*$
(?ix).*(?! oav|ova|movie|specia|series)
(?ix).*(?!oav|ova|movie|specia|series)
(?ix)(?!oav|ova|movie|specia|series)



This is an example of a file I *Don't* want to be loaded as it has the word/string 'OVA' in it.

Tengen Toppa Gurren Lagann [OVA] 01.mkv

I don't care about the brackets as there will be times when it might have them, not have them, or have different brackets. If I could just match ova, I can use the '|' to add more terms and modify the regex as needed.

I know this is in the wrong forum but while on the subject, I think it would be great if there were radio buttons on the main interface for regex/wildcard name filtering. I swap back and forth a lot, and it would save considerable time not having to open the options window to do so everytime. I will post this in the suggestions forum later for completeness.

Thanks for any help you can give me on this frustrating problem.

Eidolen
Back to top
View user's profile Send private message
admin
Site Admin


Joined: 09 Mar 2007
Posts: 446
Location: Canada

PostPosted: Fri Apr 18, 2008 7:13 am    Post subject: Reply with quote

Hi,

If you select the 'more' button in the filter panel, it will take you to more filters (located in the options window). One of them is an exclusion filter.
Just use that to search for strings that you do not want. Then you don't have to use the look-ahead feature - i.e don't need to use the '(?!xxx)' syntax in the main filter.

Peter.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Peters Flexible RenAmiNg Kit (PFrank) Forum Index -> Regular Expressions All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group. Hosted by phpBB.BizHat.com


Start Your Own Video Sharing Site

Free Web Hosting | Free Forum Hosting | FlashWebHost.com | Image Hosting | Photo Gallery | FreeMarriage.com

Powered by PhpBBweb.com, setup your forum now!
For Support, visit Forums.BizHat.com