Notepad ++逐步替换

可以说我想有10行数据,但我想为每行或每条数据增加一个值。如何增加该值?


例如...。如果我有这些行,是否有正则表达式替换id值以递增的方式?


<row id="1" />

<row id="1" />

<row id="1" />

<row id="1" />

<row id="1" />

---这就是我想要的样子...(如果第一行的ID上升,那没关系)


<row id="1" />

<row id="2" />

<row id="3" />

<row id="4" />

<row id="5" />


守着一只汪
浏览 733回答 3
3回答

红颜莎娜

由于实际答案有限,我将分享此解决方法。对于像您的示例这样的非常简单的情况,您可以反向执行...由此12345替换\r\n为" />\r\n<row id=",您将获得90%的处理率1" /><row id="2" /><row id="3" /><row id="4" /><row id="5或者,您可以使用excel /电子表格破解数据的类似方式。只需将原始数据拆分为列,然后根据需要操作值即可。|&nbsp; &nbsp;<row id="&nbsp; &nbsp;|&nbsp; &nbsp;1&nbsp; &nbsp;|&nbsp; &nbsp;" />&nbsp; &nbsp; ||&nbsp; &nbsp;<row id="&nbsp; &nbsp;|&nbsp; &nbsp;1&nbsp; &nbsp;|&nbsp; &nbsp;" />&nbsp; &nbsp; ||&nbsp; &nbsp;<row id="&nbsp; &nbsp;|&nbsp; &nbsp;1&nbsp; &nbsp;|&nbsp; &nbsp;" />&nbsp; &nbsp; ||&nbsp; &nbsp;<row id="&nbsp; &nbsp;|&nbsp; &nbsp;1&nbsp; &nbsp;|&nbsp; &nbsp;" />&nbsp; &nbsp; ||&nbsp; &nbsp;<row id="&nbsp; &nbsp;|&nbsp; &nbsp;1&nbsp; &nbsp;|&nbsp; &nbsp;" />&nbsp; &nbsp; |显而易见的内容,但是它可以帮助某人做一些一次性的奇特工作,以节省一些关键笔触。
打开App,查看更多内容
随时随地看视频慕课网APP