wrapped around the axle on regexpressions and file searching

Rob Hooft R.Hooft at EuroMail.com
Mon Apr 26 02:57:10 EDT 1999


>>>>> "m" == msrisney  <msrisney at my-dejanews.com> writes:

 m> here are my questions: 1. this prints out not only files with the
 m> file extensions ".log" but also any file name that has "log" in
 m> it's name. how would I rewrite to avoid??

How about using "fnmatch.fnmatch" instead of a regular expression?

-- 
=====   R.Hooft at EuroMail.net   http://www.xs4all.nl/~hooft/rob/  =====
=====   R&D, Nonius BV, Delft  http://www.nonius.nl/             =====
===== PGPid 0xFA19277D ========================== Use Linux! =========




More information about the Python-list mailing list