用Replace Pioneer删除每行某个字符后的内容,详细步骤:
1. ctrl-o打开文本
2. ctrl-h打开replace窗口
* 把replace unit选为Line
* 在replace with pattern输入replace($match,'@.*','')\n即可
3. 点击Replace,完成。
还有另外一个方法,请参考How to remove any comments that from hash mark "#" to line end?
http://www.mind-pioneer.com/services/722_Regular_expression_replace.html