Presentation Screenshots Download Support Development Forum    
   

Welcome to the Community Forum.

Here you can discuss with other users or with the author, suggest new features, report bugs, ask for filters creation or correction, etc. Select the forum you wish to read or post below :

Forum
Forum > Filters repository > Multi file-type in 1 filter

Pages : [1] Add a reply
User info Multi file-type in 1 filter
Cyan
Avatar
Dec 28 2009, 12:47 pm
I receive a lot of e-mails asking why ASF is not working, and it appears to be caused by incorrect filters creation.

Many users try to create multi file-type in 1 filter and end with axtravagant filters like :


*.zip, *.rar, *.7z
or
/*.zip/*.rar/*.7z/
or
*.zip| *.rar| *.jpeg

ALL of them are bad and not working, they will render ASF unusable.

You can only define 1 file mask per filter :
Filters Domain
All    
= Regexp.
File name
All    
= Regexp.
Local folder

OR
Filters Domain
All    
= Regexp.
File name
All    
= Regexp.
Local folder

etc.

If you really want to define multiple filters in one line, you will need to use complex filtering method with regular expression :
Filters Domain
All    
= Regexp.
File name
All    
= Regexp.
Local folder


Only this one is working as a multi file-type filter.
Don't forget to check the "Regexp" checkbox after the filename field.
You can now add as many filetype as you want in the parentheses, each one separated by the pipe | symbol.

.* means anything up to the final
\. dot
The parentheses content defines the possible search string
The $ is used to tell the parentheses content must be located at the end of the filename. This will look for zip[end_of_filename] or rar[end_of_filename] etc.

anything + . + parentheses_content + [end_of_filename]


OK -> anything.zip[end_of_filename]
OK -> any.thing.rar[end_of_filename]
etc.

NOT OK -> any.zip.jpeg[end_of_filename]
Post #1
Edit / Delete
Pages : [1] Add a reply

Return to top