【发布时间】:2014-04-29 06:58:30
【问题描述】:
我有一个重复单词“文章”的文本,我需要使用记事本 ++ 将每个单词替换为一个数字,从“1”开始,然后是下一个实例“2”......等等。 {\d+[+1]}
例如:
this is article and this is another article. Here is an article etc.
变成:
this is 1 and this is another 2. Here is an 3 etc.
【问题讨论】:
-
notepad++ 无法做到这一点。然而,使用编程语言、sed 或 awk 可以很容易地完成。
-
我从来没有使用过这些。你能建议一种方法来做到这一点并下载 Windows 所需的工具吗?谢谢
标签: regex replace numbers notepad++