Added option to filter files based on regex