日期:2014-05-20 浏览次数:21048 次
string test = "公交2路_上_100.gif";
string[] result = test.Split(new char[] { '_' });
foreach (string s in result)
{
richTextBox2.Text += s + "\n";
}
------解决方案--------------------
string.Split('_')
------解决方案--------------------
YourStr.Split(new char[] { '_' });