简体   繁体   English

在文本编辑器中一次编辑多行

[英]edit multiple line at once in text editor

we can add four space at once to all the selected text line by pressing tab button.我们可以通过按 Tab 按钮一次向所有选定的文本行添加四个空格。 is there anyway that we can add or remove texts in front or back of each line at once.无论如何,我们可以一次添加或删除每行前面或后面的文本。 actually I have a text file where every line ends with ":x".实际上我有一个文本文件,其中每一行都以“:x”结尾。 here x is random numbers I want to remove all of them at once.这里 x 是随机数,我想一次删除所有这些。 any way?反正?

You can use Notepad++ for that.您可以为此使用 Notepad++。 Use Replace tool with enabled regular expressions and such search string: x:[0-9].*$ (don't enable ". matches newline").使用已启用正则表达式和此类搜索字符串的替换工具: x:[0-9].*$ (不要启用“.matches newline”)。 It will find occurences like abcx:123 but ignore abcx: or x:它会发现类似abcx:123但忽略abcx:x:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM