Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Creative category for Unix Match. Part 1 by koladen
import re
def unix_match(filename: str, pattern: str) -> bool:
return bool(re.fullmatch(pattern.translate(str.maketrans({'*': '.*', '?': '.', '.': '\.'})), filename))
Oct. 30, 2020