099099.com|桂ICP备08000288号|黄俊添
1000gouwu.com|冀ICP备09050878号|康志涛
1001-w1000gouwu.comish.com|辽ICP备09028978号|大连吸引力传媒有限公司
101wm.com|皖ICP备06013913号|许敏和
只需要
099099.com
1000gouwu.com用ultradit 怎么样
1000gouwu.com|冀ICP备09050878号|康志涛
1001-w1000gouwu.comish.com|辽ICP备09028978号|大连吸引力传媒有限公司
101wm.com|皖ICP备06013913号|许敏和
只需要
099099.com
1000gouwu.com用ultradit 怎么样
1000gouwu.com|冀ICP备09050878号|康志涛
1001-w1000gouwu.comish.com|辽ICP备09028978号|大连吸引力传媒有限公司
101wm.com|皖ICP备06013913号|许敏和
";
MatchCollection mc = Regex.Matches(str, @"(?m)^[^\|]+");
foreach (Match m in mc)
{
Response.Write(m.Value + "\r\n");
}
结果:
099099.com
1000gouwu.com
1001-w1000gouwu.comish.com
101wm.com
1000gouwu.com|冀ICP备09050878号|康志涛
1001-w1000gouwu.comish.com|辽ICP备09028978号|大连吸引力传媒有限公司
101wm.com|皖ICP备06013913号|许敏和
";
MatchCollection mc = Regex.Matches(str, @"(?is)\w[^-]+\.com");
foreach (Match m in mc)
{
Response.Write(m.Value + "\r\n");
}
1000gouwu.com|冀ICP备09050878号|康志涛
1001-w1000gouwu.comish.com|辽ICP备09028978号|大连吸引力传媒有限公司
101wm.com|皖ICP备06013913号|许敏和
";
str = Regex.Replace(str, @"(?m)(?<=^[^\|]+)\|.*?$", "");
Response.Write(str);
1000gouwu.com|冀ICP备09050878号|康志涛
1001-w1000gouwu.comish.com|辽ICP备09028978号|大连吸引力传媒有限公司
101wm.com|皖ICP备06013913号|许敏和
";
MatchCollection mc = Regex.Matches(str, @"(.+\.)+com");
foreach (Match m in mc)
{
Response.Write(m.Value + "<br/>");
}
1000gouwu.com|冀ICP备09050878号|康志涛
1001-w1000gouwu.comish.com|辽ICP备09028978号|大连吸引力传媒有限公司
101wm.com|皖ICP备06013913号|许敏和
";
MatchCollection mc = Regex.Matches(str, @"(.+\.)[^\|]+");
foreach (Match m in mc)
{
Response.Write(m.Value + "<br/>");
}
^*.com|*$替换为
%01.com这是替换后的结果:
099099.com
1000gouwu.com
1001-w1000gouwu.comish.com
101wm.com