日期:2014-05-17 浏览次数:20444 次
string source = "c:/xxx/xxx.jpg"; Regex reg = new Regex(@"(?is)^[a-z]:/.*?/"); source = reg.Replace(source, "../image/");
------解决方案--------------------
using System.Linq; string Movieimage = Request["Mimage"].Replace("\\", "/"); Movieimage = string.Concat("../image/ ", Movieimage.Split('/').Last());