每行中的正则表达式记事本增量数字 [英] Regular Expression Notepad increment numbers in every line

查看:119
本文介绍了每行中的正则表达式记事本增量数字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须使用Notepad ++在每行的开头逐渐增加数字. 这不是开始.但是,就像

I've to add numbers incrementally in the beginning of every line using Notepad++. It is the not the very beginning. But, like

  when ID = '1' then data
  when ID = '2' then data
  when ID = '3' then data
  .
  .
  .
  .
  when ID = '700' then

我是否可以通过用任何表达式替换来增加这些数字,或者是否有内置记事本功能来做到这一点.

Is there any way i can increment these numbers by replacing with any expression or is there any inbuilt-notepad functions to do so.

谢谢

推荐答案

如果要使用notepad ++进行操作,则可以通过以下方式进行.

If you want to do this with notepad++ you can do it in the following way.

首先,您可以使用模板文本编写所有700行(可以使用宏,也可以使用编辑"->列编辑器").编写完毕后,将光标置于要查找数字的位置,单击Shift + Alt并选择所有行:

First you can write all the 700 lines with template text (you can use a Macro or use the Edit -> Column Editor). Once you have written it, put the cursor on the place you want the number, click Shift+Alt and select all the lines:

这篇关于每行中的正则表达式记事本增量数字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆