Bbedit:删除除此模式之外的所有内容

问题描述 投票:0回答:1

我有一个非常大的 html 文件,其中包含很多这样的字符串:

<tr id="post-21156" 

我想删除除了这些字符串之外的所有内容。不过,其余的每个字符串都应该位于不同的行。

提前致谢

grep bbedit
1个回答
0
投票

类似的东西,

找到:.*(

替换:

然后选择“全部替换”

“<" may have to be "\<", I cannot remember if it is a special character or not.

© www.soinside.com 2019 - 2024. All rights reserved.