int index = 0;
MatchCollection matches = Regex.Matches(str, "你好啊");
foreach (Match item in matches)
{
index=item.Index;
}
C#正则表达式提取指定词语出现的索引位置
最新推荐文章于 2024-05-08 23:52:14 发布