[Tutor] Extracting filenames from a List?

Troels Petersen troels.petersen@sveg.se.sykes.com
Mon, 21 Jan 2002 20:34:59 +0100


Hi,

I have a list containing filenames.

What I would like to do is to extract all files ending in '.jpg' - the case
does not matter. Everything ending in '.JpG' should be extracted.

What is the best way to do this? A Regular expression or..? It should fast
and something that can be understood by a newbie like me (I need to finish
the 2 last chapters of 'How to Think Like A Computer Scientist').

Troels