我爱Aspx >> Asp.Net >> 利用正则表达式将html网页数据变成Web Service{
string webcontent = getWebContent("http://www.bank-of-china.com/info/whjrpj.html");
// Prepair for DataSet
DataSet ds = new DataSet("Exchange");
DataTable dt = new DataTable("ForeignExchange");
ds.Tables.Add( dt );
dt.Columns.Add( "Currency", typeof(string) );
dt.Columns.Add( "BankBuyTT", typeof(double) );
dt.Columns.Add( "BankBuyNotes", typeof(double) );
dt.Columns.Add( "BankSell", typeof(double) );
dt.Columns.Add( "Baseline", typeof(double) );
XmlDataDocument xmldoc = new XmlDataDocument( ds );
Regex expr = new Regex(
@"<tr bgcolor=@##\w+@# ><td height=@#20@#>(?<currency>.*)</td>\s*" +
@"<td height=@#20@#><p align=@#right@#>(?<bankbuytt>\d*.?\d*)( )+.?</td>\s*" +
Ҷƪл˵?
使用Google的Web Service[05-28]
新浪短信Web Service[05-28]
数据库-基本概念[05-22]
关系数据库[05-22]
常见的数据库对象[05-22]
关系数据库的范式[05-22]
数据库 统计函数[05-22]
数据库属性设置[05-22]
浏览数据库[05-22]
更改数据库[05-22]
使用Google的Web Service[05-28]
新浪短信Web Service[05-28]
ASP.NET中Cookie编程的基础知识[05-28]
ASP.Net实现将Word转换PDF格式[05-28]
SQL Server 2000 简介[05-22]
SQL Server 2000 的工具[05-22]
SQL Server 2000 的版本和系统需..[05-22]
安装SQL Server 2000[05-22]
从SQL Server 7.0 升级[05-22]
数据库-基本概念[05-22]