Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
re solution in Clear category for Unix Match. Part 1 by vnkvstnk
import re
def unix_match(filename: str, pattern: str) -> bool:
new_pattern = pattern.replace('.', '\.').replace('?', '.').replace('*', '.*')
return bool(re.fullmatch(new_pattern, filename))
April 30, 2020