In Notepad++ how can I remove :
at the end of lines like this
在记事本++如何删除:在这样的行尾
FRUIT:SHOP:TBA0002:RACK 01:LINE 1:TOP:MAX:1602:1612:
水果:商店:TBA0002:架01:线1::马克斯:1602:1612:
So it will become like this
它会变成这样。
FRUIT:SHOP:TBA0002:RACK 01:LINE 1:TOP:MAX:1602:1612
水果:商店:TBA0002:架01:线1::马克斯:1602:1612
I have a very large list which consists of around 3000 lines.
我有一个很大的列表,大约有3000行。
3 个解决方案
#1
16
You can use a regular expression at the replace dialog.
您可以在replace对话框中使用正则表达式。
Find:
发现:
.{1}$
Replace with nothing then just select Replace All
没有替换,然后选择替换全部
Full options are:
完整的选项是:
#2
15
From the Features page, it states
从“特性”页面,它声明
- PCRE (Perl Compatible Regular Expression) Search/Replace
- PCRE (Perl兼容正则表达式)搜索/替换
So, you must simply search for a regular expression
因此,您必须搜索正则表达式
:$
and replace this with nothing.
然后什么都不用替换。
The dollar sign $
denotes the end of line.
美元符号$表示行尾。
For more on regular expressions, see http://www.regular-expressions.info/.
有关正则表达式的更多信息,请参见http://www.regular-expressions.info/。
#3
5
Use find and replace, check the extended option, look for :\r\n
and replace with \r\n
. This will remove them all except for the last line.
使用查找和替换,检查扩展选项,查找:\r\n,并将其替换为\r\n。除了最后一行,这将删除它们。
#1
16
You can use a regular expression at the replace dialog.
您可以在replace对话框中使用正则表达式。
Find:
发现:
.{1}$
Replace with nothing then just select Replace All
没有替换,然后选择替换全部
Full options are:
完整的选项是:
#2
15
From the Features page, it states
从“特性”页面,它声明
- PCRE (Perl Compatible Regular Expression) Search/Replace
- PCRE (Perl兼容正则表达式)搜索/替换
So, you must simply search for a regular expression
因此,您必须搜索正则表达式
:$
and replace this with nothing.
然后什么都不用替换。
The dollar sign $
denotes the end of line.
美元符号$表示行尾。
For more on regular expressions, see http://www.regular-expressions.info/.
有关正则表达式的更多信息,请参见http://www.regular-expressions.info/。
#3
5
Use find and replace, check the extended option, look for :\r\n
and replace with \r\n
. This will remove them all except for the last line.
使用查找和替换,检查扩展选项,查找:\r\n,并将其替换为\r\n。除了最后一行,这将删除它们。