0
我的txt文件(links.txt)中含有多個鏈接如下MS VB對於應用 - 一個TXT文件閱讀href的值
<A HREF="file1.oft">File 1</A>
<A HREF="file2.oft">File 2</A>
<A HREF="file3.oft">File 3</A>
<A HREF="file4.oft">File 4</A>
<A HREF="file5.oft">File 5</A>
我需要的是打開文件和讀取鏈接的價值(文件1,文件2等)
我該怎麼做?正則表達式?我想這是簡單的,但我可以找到我需要完成的事情。
??? strRegX = "<\s*A(.|\n)*?\s*>((.|\n)*?)<\s*\/A\s*>" ?????
Const ForReading = 1
Set objTextFile = objFSO.OpenTextFile("links.txt", ForReading)
Do Until objTextFile.AtEndOfStream
***** CODE GOES HERE ******
Loop
在此先感謝!
類似這樣的表達應該給你你可以在代碼中輕鬆閱讀的組:'\ [[AZ] + [A-Za-z] + =「([a-zA-Z0-9] + [。 ] * [a-zA-Z0-9] +)「\>。*' – Harsh