How do I remove/unlink wildcarded files

Chris Angelico rosuav at
Fri Jan 2 13:59:17 CET 2015

On Fri, Jan 2, 2015 at 11:36 PM, Ervin Hegedüs <airween at> wrote:
>> And worse, the given re would delete a file named "uni" which doesn't
>> sound ANYTHING like what the OP wanted :-)
> yes, you're right - I've missed out a "." before the "*". :)

Another reason to avoid regexps when you don't actually need them.
Globs are simpler, and have fewer obscure failure modes.


More information about the Python-list mailing list