string[] arr = Regex.Split("", "", RegexOptions.IgnoreCase); //字符串分割
///字符串中查找
public static string MidStrEx(string sourse, string startstr, string endstr)
{
string result = string.Empty;
int startindex, endindex;
try
{
startindex = sourse.IndexOf(startstr);
if (startindex == -1)
return result;
string tmpstr = sourse.Substring(startindex + startstr.Length);
endindex = tmpstr.IndexOf(endstr);
if (endindex == -1)
return result;
result = tmpstr.Remove(endindex);
}
catch (Exception ex)
{
Console.Write("错误:" + ex.Message);
}
return result;
}
///延时操作
System.Threading.Thread.Sleep(1000);