gave getFiles ability to take regex objects