我已经搜索过已经问过的问题,而且我也找到了一些有趣的答案,如果你觉得我太笨了,我无法将这些答案应用到我的具体案例中--我很抱歉:
情况如下:
我有一个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/PDxxxxxx.html子字符串。
有猜到吗?提前谢谢
发布于 2022-01-16 14:39:58
我最终切换到了PowerShell,这样字符串操作就更容易了,不需要再回答了
https://stackoverflow.com/questions/70701306
复制相似问题