|
![]() | 作者: huqianlong [huqianlong]
![]() |
登录 |
本人是菜鸟,对这个还不太懂, 想用replace替换某语句中批定的的字符,如 DDDerghgsjkjhhgh 字符串中第一个g 为 m 其它不用替换, 求语法! Replace(expression, find, replacewith[, start[, count[, compare]]]) Replace函数语法有如下几部分: 部分 描述 expression 必需的。字符串表达式,包含要替换的子字符串。 find 必需的。要搜索到的子字符串。 replacewith 必需的。用来替换的子字符串。 start 可选的。在表达式中子字符串搜索的开始位置。如果忽略,假定从1开始。 count 可选的。子字符串进行替换的次数。如果忽略,缺省值是 -1,它表明进行所有可能的替换。 compare 可选的。数字值,表示判别子字符串时所用的比较方式。关于其值,请参阅“设置值”部分。 |
地主 发表时间: 05-08-02 11:05 |
![]() | 回复: 286 [unique] ![]() |
登录 |
Replace("DDDerghgsjkjhhgh","g","m",1,1) |
B1层 发表时间: 05-08-02 12:07 |
|
20CN网络安全小组版权所有
Copyright © 2000-2010 20CN Security Group. All Rights Reserved.
论坛程序编写:NetDemon
粤ICP备05087286号