i have a sting witch i need to divide into 3 groups
/files/images/image.jpp
1. Location: /files/images/
2 file name: image
3 file type: .jpp
this is my code
FileName = Regex.Replace(pic, @"^.*\\", "" // here is the problem
uploadpath = Regex.Replace(pic, FileName, ""
string[] temp = Regex.Split(pic, "\\."
FileName = temp[0];
Type = temp[1];
please help ;(
Best regards Hlynur
/files/images/image.jpp
1. Location: /files/images/
2 file name: image
3 file type: .jpp
this is my code
FileName = Regex.Replace(pic, @"^.*\\", "" // here is the problem
uploadpath = Regex.Replace(pic, FileName, ""
string[] temp = Regex.Split(pic, "\\."
FileName = temp[0];
Type = temp[1];
please help ;(
Best regards Hlynur