例如下面我要根據(jù)[vevb.com]分割的話
復(fù)制代碼 代碼如下:
string str = "reterry[vevb.com]是武林網(wǎng)[vevb.com]的站長";
string[] arrstr = str.Split(new char[] { '[', 's', 'o', 's', 'u', 'o', '8', '.', 'c', 'o', 'm', ']' });
for (int i = 0; i < arrstr.Length; i++)
{
Response.Write(arrstr[i]);
}
復(fù)制代碼 代碼如下:
string[] arrstr2 = str.Replace("[vevb.com]", "$").Split('$');
新聞熱點(diǎn)
疑難解答
圖片精選