string.replace(new RegExp(oldString,"gm"),newString))

gm     g=global, m=multiLine 

posted on 2008-04-28 10:22  大斌锅  阅读(227)  评论(0编辑  收藏  举报