html - 编辑多个 HTML 文件

标签 html text automation text-editor

我有 90 个 html 文件,其中播放音频文件(链接错误),我需要更改每个文件中音频文件的 src。

来自

<embed src="../audio/" autostart=false width=0 height=0 id="sound1" enablejavascript="true">

至:

文件 1:

<embed src="../audio/1.mp3" autostart=false width=0 height=0 id="sound1" enablejavascript="true">

文件2:

<embed src="../audio/2.mp3" autostart=false width=0 height=0 id="sound1" enablejavascript="true">

...

对于自动化方法有什么建议吗? 谢谢

稍后编辑:

每个文件的新 src 都不同...是否有可能为每个文件自动填充此内容?对于文件1 -> src1,文件2 -> src2 ...

最佳答案

Notepad++ 有一些很好的搜索和替换功能,您可以在此处使用。

关于html - 编辑多个 HTML 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4193361/

相关文章:

css - 从底部到顶部放置div

text - 如何使用 pandoc 语法在 Markdown 文档中指定表格?

pdf文本提取

text - map 减少每个文本文件的实现

HTML/CSS : how do I make <p>s inside a <div> have different properties

javascript - 向元素添加其他属性有多糟糕,或者还有哪些其他选项?

css - iframe 的 HTML5 样式

testing - 在 Selenium 中处理子窗口

python - 使用 Selenium 的谷歌帐户登录自动化导致错误

java - 可执行Jar : Issue in accessing pom while executing jar