日期:2014-05-18  浏览次数:20475 次

.net 批量截取字符串
.net 批量截取字符串
比如我有多个连接 

asdasdasd.adasda http:www.baidu.com\asdasdasasdasd http:www.baidu1.com\asdasdasasdasd http:www.baidu2.com\asdasdasasdasd http:www.baidu3.com\asdasdasasdasd http:www.baidu4.com\asdasdasasdasd http:www.baidu5.com\asdasdasasdasd http:www.baidu6.com\asdasdasasdasd http:www.baidu7.com\asdasdasasdasd http:www.baidu8.com\asdasdasasdasd http:www.baidu9.com\asdasdasasdasd http:www.baidu11.com
前面的asdasdasd 哪个是随机的 可能是任何东西

怎么一次吧所有连接获取

------解决方案--------------------
正则实现可以吗?
在C盘建一个1.txt,内容如下:
HTML code

asdasdasd.adasda http:www.baidu.com\asdasdasasdasd http:www.baidu1.com\asdasdasasdasd http:www.baidu2.com\asdasdasasdasd http:www.baidu3.com\asdasdasasdasd http:www.baidu4.com\asdasdasasdasd http:www.baidu5.com\asdasdasasdasd http:www.baidu6.com\asdasdasasdasd http:www.baidu7.com\asdasdasasdasd http:www.baidu8.com\asdasdasasdasd http:www.baidu9.com\asdasdasasdasd http:www.baidu11.com