110,571
社区成员
发帖
与我相关
我的任务
分享
[\u4e00-\u9fa5]*(?=\s*,)
string input = "李莎 ,13422407945 , ,河北省 秦皇岛市 海港区 东北大学秦皇岛分校30503 ,066004 ";
string output = Regex.Match(input,@"\w+").Value; // output: 李莎
^[^,]+
Match m = Regex.Match(yourStr, @"^[^,]+");
if (m.Success)
{
richTextBox2.Text = m.Value;
}
MatchCollection mc = Regex.Matches(yourStr, @"[^,]+");
foreach (Match m in mc)
{
richTextBox2.Text += m.Value + "\n";
}