Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
RegExp solution in Clear category for Unix Match. Part 1 by Rush_iam
import re
def unix_match(filename, pattern):
for r in ((".", "\."), ("*", ".*"), ("?", ".{1}")):
pattern = pattern.replace(*r)
return bool(re.match(pattern, filename))
Aug. 26, 2020