1.提取两个指定字符串中间的值
Regex rg = new Regex("(?<=(" + "起始字符串" + "))[.\\s\\S]*?(?=(" + "结束字符串" + "))", RegexOptions.Multiline | RegexOptions.Singleline);
string str = rg.Match(s).Value;
"#Version 1.0#"
posted on 2019-08-20 09:44 Innershar 阅读(187) 评论(0) 收藏 举报
博客园 © 2004-2025 浙公网安备 33010602011771号 浙ICP备2021040463号-3