Currently my method of outputing directory files to a listbox is:
dir_struct = dir(pwd)[sorted_names,sorted_index] = sortrows({dir_struct.name}');handles.file_names = sorted_names;set(handles.files,'String',handles.file_names,'Value',1)
When getting the sorted_names I want to exclude certain files. Let's say files containing 'include' should be included, /w 'exclude' not.
I was thinking about using regexp. Suggestions?
Best Answer