【发布时间】:2015-03-19 20:11:38
【问题描述】:
我有一些这样的字符串:
"this is a string like #{aa} and#{bb}. "
"#{cc}this is another str#{dd}ing..."
我想像这样更改这些字符串:
"this is a string like ? and?." "aa" "bb"
"?this is another str?ing..." "cc" "dd"
我尝试使用正则表达式来拆分这些字符串,但失败了。
我该怎么办?
【问题讨论】: