regexp help

Simon Brunning simon at brunningonline.net
Wed Nov 4 18:12:47 CET 2009


2009/11/4 Nadav Chernin <Nadav.C at qualisystems.com>:
> Thanks, but my question is how to write the regex.

re.match(r'.*\.(exe|dll|ocx|py)$', the_file_name) works for me.

-- 
Cheers,
Simon B.



More information about the Python-list mailing list