正则 批量 提取 手机号
Regex rx = new Regex(@"(1(([35][0-9])|(47)|8[0126789]))\\d{8} ", RegexOptions.IgnoreCase);
MatchCollection mc = rx.Matches("kajflkjsfaldjf 13717552078 sdfs13324882742sdfdssdffdf");
foreach (Match m in mc)
{
if (!m.Success)
continue;
Response.Write(m.Groups[0].Value);
}
为什么提取不到
提取结果应该是
13717552078
13324882742