Implements regex filtering for file names
Free compiled regex