以文本方式查看主题 - Foxtable(狐表) (http://foxtable.net/bbs/index.asp) -- 专家坐堂 (http://foxtable.net/bbs/list.asp?boardid=2) ---- [求助]抽取内容 (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=136520) |
-- 作者:OKK -- 发布时间:2019/6/14 21:03:00 -- [求助]抽取内容 dim hj as string = "<p>好的!<img src=\'img/emotion/face01/2.png\'>thankyou!886</p>" 求代码,获取:好的!thankyou!886
|
-- 作者:有点蓝 -- 发布时间:2019/6/14 21:40:00 -- Dim hj As String = "<p>好的!<img src=\'img/emotion/face01/2.png\'>thankyou!886</p>" Dim p As String = "(?<=>).*?(?=<)" Dim rgx = new System.Text.RegularExpressions.Regex(p, System.Text.RegularExpressions.RegexOptions.IgnoreCase) For Each match As System.Text.RegularExpressions.Match In rgx.Matches(hj) Output.Show(match.Value ) Next |
-- 作者:OKK -- 发布时间:2019/6/14 22:02:00 -- 好的!thankyou! |