Author: exhteeml | Posted on: 6/16/2008 3:22:17 PM | Views : 555

Hello All,
I'm writing a method that evaluates a MIME type and then returns a enumeration type based on the given MIME type...However, My regular expressions don't seem to be working (probably due to my experience with them...)
Any help would be immensely appreciated.
 
 
Private Function DetermineFileType() As FileTypes

Dim fileType As FileTypes

Dim imageRegex As New Regex("^[image]\+$")
Dim audioRegex As New Regex("^[audio]+\++$")
Dim videoRegex As New Regex("^[video]+\++$")
...

Go to the complete details ...