我已經搜索了已經提出的問題,盡管我找到了一些有趣的答案,但我無法將這些答案應用于我的具體案例如果你覺得我太愚蠢了,我深表歉意:(
情況如下:
我有一個 html 檔案,其中包含幾行如下所示:
<h3 class ="title-3"><a href="/product/PD00334951.html">Title name nb 1</a></h3>
<h3 class ="title-3"><a href="/product/PD00397772.html">Title name nb 2</a></h3>
<h3 class ="title-3"><a href="/product/PD00324955.html">Title name nb 3</a></h3>
...
使用 Windows 命令列工具 findstr (并且只有那個工具),我正在嘗試檢查是否可以僅提取 /product/PDxxxxxxxx.html 子字串
有什么猜測嗎?首先十分感謝
uj5u.com熱心網友回復:
我終于切換到 PowerShell 這樣字串操作會更容易 不再需要回答
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/412090.html
標籤:
下一篇:將網格轉換為加權鄰接表
