小编Sar*_*kar的帖子

如何从每一行中删除尾随的非字母字符?

我正在尝试删除除字母以外的最后一个字符:

support.help1.com,,
support.help1.com.
support.help1.com9
support.help1.com*
support.help1.com@@
support.help1.com##
support.help1.com%%
support.help1.com^
support.help1.com
support.help1.com,
support.help1.com-
Run Code Online (Sandbox Code Playgroud)

我希望我的输出是这样的:

support.help1.com
support.help1.com
support.help1.com
support.help1.com
support.help1.com
support.help1.com
support.help1.com
support.help1.com
support.help1.com
support.help1.com
support.help1.com
Run Code Online (Sandbox Code Playgroud)

command-line text-processing

3
推荐指数
1
解决办法
220
查看次数

标签 统计

command-line ×1

text-processing ×1