rplc()
函数说明:将字符串src的子字符串a变为字符串b,
语法:rplc(srcExp,subStrA,rplcStrB{,boolExp})
参数说明:srcExp源字符串subStrA源字符串的子字符串rplcStrB将要替换成的字符串boolExp引号里的字符是否需要变换,缺省为true
返回值:替换后的字符串
示例:
例1:rplc("abc'abc'def","a","中国")返回:"中国bc'中国bc'def"
例2:rplc("abc'abc'def","a","中国",false)返回:"中国bc'abc'def"
例3:rplc("abc'abc'def","a","中国",true)返回:"中国bc'中国bc'def"