- 帖子
- 5923
- 主題
- 13
- 精華
- 1
- 積分
- 5986
- 點名
- 0
- 作業系統
- win10
- 軟體版本
- Office 2010
- 閱讀權限
- 150
- 性別
- 男
- 來自
- 台灣基隆
- 註冊時間
- 2010-5-1
- 最後登錄
- 2022-1-23
|
19#
發表於 2013-9-12 16:17
| 只看該作者
回復 18# wufonna - Option Explicit
- Sub test()
- Dim a As String, b As String, c As String, d As String
- Dim AR As Variant, i As Integer, S(1 To 2) As Integer
- a = "<img src=""http://l.yimg.com/ud/hp_editor/tw/13/09/12/15/130asf302-190c8a5.jpg"" alt=""Video 圖片"" width=160 height=115><br>"
- b = "<img src=""http://l.yimg.com/ud/hp_editor/tw/13/09/12/15/asf912151302190c8a35.jpg"" ></p>"
- c = "<img src=""http://l.yimg.com/ud/hp_editor/tw/13/09/12/15/130f302-19c8a35.jpg"" alt=""Video 圖片"" height=115><br />"
- d = "<img width=160 height=115 src=http://l.yimg.com/ud/hp_editor/tw/13/09/12/15/13092151302190c8a35.jpg ></a>"
- AR = Array(a, b, c, d)
- For i = 0 To UBound(AR)
- S(1) = InStr(AR(i), "http://")
- S(2) = InStr(AR(i), "jpg") + 3
- AR(i) = Mid(AR(i), S(1), S(2) - S(1))
- Next
- MsgBox Join(AR, vbLf)
- End Sub
複製代碼 |
|