【发布时间】:2016-06-06 23:04:28
【问题描述】:
我想替换下面的字符串
comments={ts=2010-02-09T04:05:20.777+0000, comment_id=529590|2886|LOL|Baoping Wu|529360}
在
comments={ts=2010-02-09T04:05:20.777+0000, comment_id=529590, user_id = 2886, comment='LOL', user= 'Baoping Wu', post_commented=529360}
我的方法是 comment_id=.([0-9])* 第一次替换 其他替换对我来说很难。谁能帮帮我?
【问题讨论】:
-
您使用什么编程语言?你能做替代手术吗?
-
我使用的不是编程语言,而是 Apple Mac 的 TextMate
-
TextMate 使用 Oniguruma 正则表达式语法。