git ignore
translate glob patterns to regular expressions