查找并替换 div 容器之前的代码
Find and replace code before div container
尝试使用 Sublimetext 清理大约 900 个 html 文件中的一些代码。
查找和替换所有代码的正则表达式是什么之前
<div class="dngContent">
和所有代码 在 之后 </div><!-- dngContent-->
?
我会分几步完成这样的事情。
- 删除所有 \n\r,将其替换为空。
- 找到
- 其中:^.*(.*).* $
- 替换:$1
- 使用自动格式添加 \n(如果需要)
尝试使用 Sublimetext 清理大约 900 个 html 文件中的一些代码。
查找和替换所有代码的正则表达式是什么之前
<div class="dngContent">
和所有代码 在 之后 </div><!-- dngContent-->
?
我会分几步完成这样的事情。
- 删除所有 \n\r,将其替换为空。
- 找到
- 其中:^.*(.*).* $
- 替换:$1
- 其中:^.*
- 使用自动格式添加 \n(如果需要)