bwana
10-01-2009, 09:25 PM
I need to check if a filename has the following format:
Lastname,Firstname text.filetype
where
lastname is made of letters only but may have a hyphen in it
firstname is made of letters only
there is a space after firstname and some text after it
I dont really care what the filetype is
I tried
"Lastname,Firstname text.filetype" Like "[a-zA-Z-]+[,][a-zA-Z]+[ ][.a-zA-Z-]+"
but it evaluates false.
Help?
Lastname,Firstname text.filetype
where
lastname is made of letters only but may have a hyphen in it
firstname is made of letters only
there is a space after firstname and some text after it
I dont really care what the filetype is
I tried
"Lastname,Firstname text.filetype" Like "[a-zA-Z-]+[,][a-zA-Z]+[ ][.a-zA-Z-]+"
but it evaluates false.
Help?