string remoteUri = "http://download.tfol.com/down/desktop/others/200(5)6(07)(05)/(01)a(00)/b(1).jpg";
括号()中间为批量下载时的起始数字,括号数量不定(由用户输入)。string remoteUri = "http://download.tdfas.com/down/desktop/others/200(3)6(07)(05)/(01)a(00)/b(1).jpg";
//这里的表达式怎么写?(下面这个不对)
string pat = @"(?<start>[^\(|^\)]+)(\(?<num>\d+\))*(?<other>[^\(\)]*)";
Regex r = new Regex(pat, RegexOptions.ExplicitCapture | RegexOptions.Compiled);
....
string[][] urlArray = new string[][]{
//new string[]{"3", "07", "05", "01", "00", "1"},//起始位置
arrStartNum,//起始位置(怎样根据产生出类似上面)
//new string[]{"5", "12", "99", "13", "99", "6"}//结束位置(用户输入),分别与上面一一对应
};