如何删除除引号内的内容之外的所有文本?

Chi*_*ibi 5 notepad text-editing notepad++ regex text-editors

我想删除除引号之间的所有文本。

我该怎么做?

例子:

Bran could hear the wind in the trees, the clatter of their hooves on the ironwood planks, the whimpering of his hungry pup, but Jon was listening to something else. “There,” Jon said. He swung his horse around and galloped back across the bridge. They watched him dismount where the direwolf lay dead in the snow, watched him kneel. A moment later he was riding back to them, smiling. “He must have crawled away from the others,” Jon said. “Or been driven away,” their father said, looking at the sixth pup. His fur was white, where the rest of the litter was grey. His eyes were as red as the blood of the ragged man who had died that morning. Bran thought it curious that this pup alone would have opened his eyes while the others were still blind. “An albino,” Theon Greyjoy said with wry amusement. “This one will die even faster than the others.” Jon Snow gave his father’s ward a long, chilling look. “I think not, Greyjoy,” he said. “This one belongs to me.”

需要的结果:

“There,” “He must have crawled away from the others,” “Or been driven away,” “An albino,” “This one will die even faster than the others.” “I think not, Greyjoy,” “This one belongs to me.”

或者

There, He must have crawled away from the others, Or been driven away, An albino, This one will die even faster than the others. I think not, Greyjoy, This one belongs to me.

小智 0

CudaText编辑器中,您可以通过多项选择来完成。

  • 对话框查找、输入".+?"、检查 reg-ex 选项
  • 在对话框中按“全选”
  • 选择引号内的文本,复制到剪贴板
  • 新建文件选项卡,从剪贴板粘贴

要将结果行连接到一行,请使用CudaExt插件的命令“连接所选行”。