加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

正则表达式 – 从记事本文件中删除行号

发布时间:2020-12-14 06:06:45 所属栏目:百科 来源:网络整理
导读:我收到了一个很长的文件.它有1000行SQL代码.每行以行号开头. 14 PROCEDURE sp_processRuleset(pop_id IN NUMBER);15 16 -- clear procedure for preview mode to clean crom_population_member_temp table and global variables17 PROCEDURE sp_commit; -- 2
我收到了一个很长的文件.它有1000行SQL代码.每行以行号开头.

14      PROCEDURE sp_processRuleset(pop_id IN NUMBER);
15  
16       -- clear procedure for preview mode to clean crom_population_member_temp table and global variables
17       PROCEDURE sp_commit; -- 28-Oct-09 J.Luo
18  
19       -- The rule Set string for the Derived Population Member Preview
20       -- The preview mode will set gv_context_ruleSet by setContext_ruleSet,21       -- sp_processRuleset uses gv_context_ruleSet to build derived population instead of getting rules from crom_rule_set table
22       gv_context_ruleSet VARCHAR2(32767) := NULL;  -- 27-Oct-09 J.Luo
23          -- The population Role Id for the Derived Population Member Preview

我想使用NotePad Find Replace功能仅删除行号.是否有任何正则表达式可以完成这项工作?

解决方法

This using regex是最简单的方法.

其他方便的方式(滚动1K行不是很多IMO)可能是:

使用ALT键和拖动鼠标进行块选择,如下所示:

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读