Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
1-liner solution in Speedy category for Unix Match. Part 2 by Stensen
unix_match = lambda f, p: __import__('re').match(p
.replace('.', r'\.')
.replace('*', '.*')
.replace('?', r'.{1}')
.replace('[!]', r'\[\!\]')
.replace('[!', '[^')
.replace('[]', '[^.]'), f) is not None
Sept. 21, 2020
Comments: