我想在asp.net中获取总字符串中的一些数据 [英] I want to get some data in total string in asp.net

查看:90
本文介绍了我想在asp.net中获取总字符串中的一些数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我从字符串中获取数据时遇到问题。



这是我的字符串是这样的....



Hi,

I have a problem getting the data from a string.

This is my string like this....

<![CDATA[<p style='color:#999;'>From <b>IBM</b> Intern (Current Employee) &mdash; Rating 4.0 out of 5 &mdash; Thu, 15 May 2014</p>
<p><b>Pros</b><br/>
IBM has good hours and good culture. Each team is different so you might have a really good or really bad time, or get interesting or mundane work (as an intern)</p>
<p><b>Cons</b><br/>
Work and responsibility depends on the team you are in. Quite a big company and thus it is political. Pay isn't top gear and reputation is only strong in some areas</p>
<p><a href='http://www.glassdoor.com/Reviews/Employee-Review-IBM-RVW4233331.htm'><b>Add a Comment</b></a></p>
]]>





我只想评分4.0,满分5分和星期四,2014年5月15日。我想将这两个字符串数据分配给另外两个字符串。比如字符串评级=评分4.0,满分5分;和字符串d =星期四,2014年5月15日。



我想阅读数以千计的大量字符串。



请给我解决方案......

谢谢



I want to only "Rating 4.0 out of 5 " and "Thu, 15 May 2014". I want to assign these two strings data into another two strings. Like string rating="Rating 4.0 out of 5"; and string d=Thu, 15 May 2014.

I want to read thousands of large amount of strings.

Please give me the soluation...
Thank you

推荐答案

看看 HTML Agility Pack [ ^ ]。这是一个非常方便的实用程序。
Take a look at Html Agility Pack[^]. It is a very handy utility.


这篇关于我想在asp.net中获取总字符串中的一些数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆