use regex instead of homebrew for filename matching