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 tom-tom
import re
def unix_match(filename: str, pattern: str) -> bool:
return bool(re.fullmatch(pattern.replace('.', '\.').replace('*', '.*').replace('?', '.'), filename))
March 12, 2019
Comments: