我有一个记事本++文件的内容如下
{s:11:"wpseo_title";s:42:"Web Designing training institutes in Kochi";}i:357;a:1:
{s:11:"wpseo_title";s:32:"CSS training institutes in Kochi";}i:358;a:1:
{s:11:"wpseo_title";s:34:"HTML5 training institutes in Kochi";}i:359;a:1:
{s:11:"wpseo_title";s:39:"JavaScript training institutes in Kochi";}i:360;a:1:
{s:11:"wpseo_title";s:32:"XML training institutes in Kochi";}}}
我需要一种方法来搜索短语;s:42:“并将短语的数字部分增加1。在这种情况下,将变成43。在
我只需要这么做。不管它是通过这样一个python脚本实现的
Notepad++ Regular Expression add up numbers
或者其他方法。在
请帮帮我。我对python/任何此类语言都不熟悉。在
我想是这样的
甚至更好
^{pr2}$Perl一行程序版本:
以您的链接为例,regex匹配应该是:
我想。我以前从没做过这个!在
相关问题 更多 >
编程相关推荐