我在Excel檔案中有幾百行這樣的內容。我曾試圖將它們一一複製,但很煩人;所以我想知道是否有辦法一次從所有這些中提取網址?
<a href="http://mywebsite.com/link?id=SsQD2GsCjgY&offerid=445126&mid-heel-sandal-black"><IMG border=0 src="https://e31vejvoh8fjtd.bi/catalog/product/1/0/1039-000064-2412-2.jpg" ></a><IMG border=0 width=1 height=1 src="http://ad.fjuyla.com/fs-bin/show?id=SsQD2GsCjgY&bids=445126.3671510716&type=2&subid=0" >
註*:我的意思是主 href url,而不是 src url。
答案1
答案2
假設這些行都包含
<a href=" ...... "><IMG
您可以使用正規表示式來過濾。有關如何在 Excel 中使用正規表示式,請查看此處: https://stackoverflow.com/questions/22542834/how-to-use-regular-expressions-regex-in-microsoft-excel-both-in-cell-and-loops