View previous topic :: View next topic |
Author |
Message |
eidolen
Joined: 15 Apr 2008 Posts: 11
|
Posted: Thu Apr 17, 2008 8:06 pm Post subject: Help with regex file filter to exclude files containing ... |
|
|
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.
((?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(? ?! Ova)\w)+\b # any files
(?x)\b(? ?! 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 |
|
 |
admin Site Admin
Joined: 09 Mar 2007 Posts: 448 Location: Canada
|
Posted: Fri Apr 18, 2008 7:13 am Post subject: |
|
|
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 |
|
 |
|