declare @t table
(col varchar(100))insert @t
select '<a href="http://www.colorsavant.com" target=_blank>http://www.colorsavant.com' union all
select '<a href="http://www.type.cn" target=_blank>http://www.type.cn'select substring(col,charindex('"',col)+1,charindex('"',col,charindex('"',col)+1)-charindex('"',col)-1
) from @t
(col varchar(100))insert @t
select '<a href="http://www.colorsavant.com" target=_blank>http://www.colorsavant.com' union all
select '<a href="http://www.type.cn" target=_blank>http://www.type.cn'select substring(col,charindex('"',col)+1,charindex('"',col,charindex('"',col)+1)-charindex('"',col)-1
) from @t
解决方案 »
- @Sequence=right (@Tmp+convert(varchar(20),Sequence + 1)
- 附加数据库提示mdf不是主数据库
- sqlserver2005: 这段建立自定义函数的代码有什么毛病?(附错误信息)
- 变量做表名的错误!
- 如何在视图创建触发器?
- 不知道这个select语句如何来写?(百分求)!!!
- 关于K3金碟前台界面和后台数据库表之间对应问题综述,请高手进来指点
- 久仰大名,谁愿告诉我“卖火柴的”的是谁??!
- 关于sql2000中这样导入和导出数据的问题???
- 急!!急!!请问可以在SQL server的触发器或者存储过程中对文件进行操作么?如何操作?
- 数据库角色属性 dt_ 这样前缀的代表什么对象
- select 的时候怎样select最后几条记录出来?
我只想要http://www.colorsavant.com 如何过滤
===========>上面字符串有两个"http://www.colorsavant.com ",请问楼主要第一个还是第二个?
-------------------
Dim s As String = TextBox1.Text
s = "<a href="http://www.colorsavant.com" target=_blank>http://www.colorsavant.com
/a>"
Dim pattern As String = "\<a.*\>(.*)\<.*"
Dim regex As System.Text.RegularExpressions.Regex = New System.Text.RegularExpressions.Regex(pattern)
s = regex.Replace(s, "$1", -1)
TextBox1.Text = s