ASP 高分求替换问题!

来源:百度知道 编辑:UC知道 时间:2024/05/31 19:14:48
<td width="556" height="21"><a class=a10 href="shownews.asp?id=737" target="blank">海城小伙</a>
<td width="556" height="21"><a class=a10 href="shownews.asp?id=736" target="blank">今天天气很好</a>

我只想留下ID=737的737

用正则表达式或自己写的函数也可以!

我写了个函数GetStrByStar()
但不适你用,不过你提醒了我。因为我的这函数只能这样用:

shownews.asp?id=737&tt=
则 GetStrByStar("shownews.asp?id=737&tt=","?ud=*&tt")
返回的结果是"737"

<td width="556" height="21"><a class=a10 href="shownews.asp?<737>"

target="blank">海城小伙</a>
<td width="556" height="21"><a class=a10 href="shownews.asp?<736>"

target="blank">今天天气很好</a>

倒底是什么意思哦?不太明白,说清楚点行不?