Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
re.match(pattern, string) solution in Clear category for Unix Match. Part 1 by David_Jones
import re
def unix_match(filename, pattern):
pattern = pattern.replace('.', '\.').replace('*', '.*').replace('?', '.')
return bool(re.match(pattern, filename))
June 30, 2019
Comments: