从Notepad ++文件中删除行号

Ume*_*til 4 regex notepad++

我收到了一个很长的文件.它有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
Run Code Online (Sandbox Code Playgroud)

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

P0W*_*P0W 12

使用正则表达式是最简单的方法.

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

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

在此输入图像描述


Fed*_*zza 5

你可以使用这个正则表达式:

^\d+
Run Code Online (Sandbox Code Playgroud)

工作演示