bkiahg has asked for the wisdom of the Perl Monks concerning the following question:

Hello Monks,

I am trying to place a check on the file type of a file that I am uploading. It is on a windows based system and I need to see if it's an image file (.jpg, .gif, .bmp, etc.) or a text file (.doc, .txt, etc.) I am extremely new to regular expressions.

Thanks in advance!