摘要:
"hand hand hand"想变换为"hand.gif hand.gif hand.gif" 开始用 str=str.replace("hand","hand.gif"); 输出:hand.gif hand hand 只替换了一次。。。:( 想到用正则,因为replace本来就可以用正则替换。 引用 返回根据正则表达式进行文字替换后的字符串的复制。 stringObj.replace... 阅读全文
posted @ 2008-10-23 12:07 hateyoucode 阅读(474) 评论(0) 推荐(0)