用唯一编号替换在Notepad ++中

时间:2019-03-13 17:04:18

标签: notepad++

我有以下问题。例如,我有一个包含一些信息的文件:

<line1>**123ABC000001**</line1>
<line2>SOMETEXTHERE</line2>
<line3>SOMETEXTHERESOMETEXTHERE</line3>
<line4>SOMETEXTHERESOMETEXTHERESOMETEXTHERE</line4>
<line5>**123ABC000001**</line1>
<line6>SOMETEXTHERE</line2>
<line7>SOMETEXTHERESOMETEXTHERE</line3>
<line8>SOMETEXTHERESOMETEXTHERESOMETEXTHERE</line4>
<line9>**123ABC000001**</line1>
<line10>SOMETEXTHERE</line2>
<line11>SOMETEXTHERESOMETEXTHERE</line3>
<line12>SOMETEXTHERESOMETEXTHERESOMETEXTHERE</line4>

并且我希望line1,line5,line9是具有增量的唯一数字,例如:

<line1>**123ABC000001**</line1>
<line2>SOMETEXTHERE</line2>
<line3>SOMETEXTHERESOMETEXTHERE</line3>
<line4>SOMETEXTHERESOMETEXTHERESOMETEXTHERE</line4>
<line5>**123ABC000002**</line1>
<line6>SOMETEXTHERE</line2>
<line7>SOMETEXTHERESOMETEXTHERE</line3>
<line8>SOMETEXTHERESOMETEXTHERESOMETEXTHERE</line4>
<line9>**123ABC000003**</line1>
<line10>SOMETEXTHERE</line2>
<line11>SOMETEXTHERESOMETEXTHERE</line3>
<line12>SOMETEXTHERESOMETEXTHERESOMETEXTHERE</line4>

那么久。有可能在Notepad ++中创建内容吗?

谢谢

0 个答案:

没有答案