rails字符串替换mgsub from ruby cookbook
ProblemYou want to perform multiple, simultaneous search-and-replace operations on a string.SolutionUse the Regexp.union method to aggregate the regular expressions you want to match into one
转载
2012-04-20 11:11:06 ·
1251 阅读 ·
0 评论