在网上抓取的一个个字符串
string str = "<a href="javascript:void(0);" onclick="HotelRoom.onNameClick(this)" class="pic"><img onerror="errorRoomImg(this)" _src="http://images4.c-ctrip.com/target/hotel/134000/133552/311E8632-8D98-4266-81C2-05FB988A4AF5_300_225.jpg" src="http://images4.c-ctrip.com/target/hotel/134000/133552/311E8632-8D98-4266-81C2-05FB988A4AF5_130_130.jpg"/></a><a class="room_unfold" href="javascript:void(0);" onclick="HotelRoom.onNameClick(this)">大床房B<br /><span>查看详情</span></a> "有什么简单高效的方法能把 大床房B 获取到C#String抓取
string str = "<a href="javascript:void(0);" onclick="HotelRoom.onNameClick(this)" class="pic"><img onerror="errorRoomImg(this)" _src="http://images4.c-ctrip.com/target/hotel/134000/133552/311E8632-8D98-4266-81C2-05FB988A4AF5_300_225.jpg" src="http://images4.c-ctrip.com/target/hotel/134000/133552/311E8632-8D98-4266-81C2-05FB988A4AF5_130_130.jpg"/></a><a class="room_unfold" href="javascript:void(0);" onclick="HotelRoom.onNameClick(this)">大床房B<br /><span>查看详情</span></a> "有什么简单高效的方法能把 大床房B 获取到C#String抓取
解决方案 »
- 跪求C#获取到Excel中控件的值方法,急等...
- c# 实现photoshop 抠图功能,分离人物和背景
- 用winform做网络管理软件问题
- 怎样将文件拖放到TEXTBOX
- GridView中能删数据,不能更新,怎么办!
- ListItemCollection 类在哪个命名空间下
- 在windows application中,如何用鼠标移动datagrid的列?
- 我想得到"SignIn"这个字符串值,xmlFile.SelectNodes(xpath),这个 xpath怎么写?
- 关于正则表达式的问题
- 看看我的SQL插入
- C#不知道为什么编程英文了。
- 在线等,传入的表格格式数据流(TDS)远程过程调用(RPC)协议流不正确。
string key = "onclick="HotelRoom.onNameClick(this)">";
str=str.SubString( str.IndexOf(key)+key.Length,str.LastIndexOf("<br />")-(str.IndexOf(key)+key.Length));