search:返回第一个和正则表达式搜索到的起始位置: 返回起始位置 //注释,返回结果为3,因为其实位置是3。replace:替换全局找到的字符串为指定字符串。 replace用例 匹配结果为:mm world,mm