社区
ASP
帖子详情
替换字符
myveremy
2005-06-20 12:45:36
Program="12312312&1231231231"
if instr(Program,"&")>0 then
replace(program,"&","ab")
else respose.write "b"
end if
怎么替换不了啊!
...全文
95
6
打赏
收藏
替换字符
Program="12312312&1231231231" if instr(Program,"&")>0 then replace(program,"&","ab") else respose.write "b" end if 怎么替换不了啊!
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
6 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
itzhiren
2005-06-20
打赏
举报
回复
能替换呀:
<%
Program="12312312&1231231231"
if instr(Program,"&")>0 then
Program = replace(program,"&","ab")
response.write Program
else
response.write "b"
end if
%>
wangwm
2005-06-20
打赏
举报
回复
Program="12312312&1231231231"
if instr(Program,"&")>0 then
program = replace(program,"&","ab")
Response.write program
else
Response.write "b"
end if
千念陌
2005-06-20
打赏
举报
回复
Program="12312312&1231231231"
if instr(Program,"&") then
replace(program,"&","ab")
else
respose.write "b"
end if
xiaosaye
2005-06-20
打赏
举报
回复
...
if instr(Program,"&")>0 then
replace(program,"&","ab") '你这条语句进行替换后没有把新的值赋给Program
else respose.write "b"
...
zhangxian_gege
2005-06-20
打赏
举报
回复
Program="12312312&1231231231"
if instr(Program,"&")>0 then
response.write replace(program,"&","ab")
else
respose.write "b"
end if
可以替换的 ,只是你没有写出来而已
ronakitty
2005-06-20
打赏
举报
回复
得把替换后的值付给一个变量啊!
a=replace(program,"&","ab")
替换
字符
串中的特定
字符
在编程中,有时我们需要
替换
字符
串中的特定
字符
。本文将介绍两种常用的方法:使用replace()函数和使用正则表达式。其中,old_string是原始
字符
串,old_char是需要被
替换
的
字符
,new_char是要
替换
成的新
字符
。replace...
【C++】C++中查找并
替换
字符
串中的特定单个
字符
、多个
字符
、中文
字符
请注意,如果
字符
串中没有要
替换
的
字符
, std::replace 不会执行任何操作,因此这两个方法在这种情况下都是高效的。如果你需要
替换
的
字符
在
字符
串中...std::replace 是C++标准库中的一个函数,可以
替换
字符
串中的
字符
。
正则表达式
替换
字符
串的方法
正则表达式的一个强大功能是捕获组(Capture Groups),它允许我们捕获匹配的子
字符
串,并在
替换
字符
串中引用它们。同时,正则表达式的捕获组功能使我们能够灵活地处理复杂的
字符
串
替换
需求。正则表达式是处理
字符
串...
linux中vim如何
替换
字符
串,vim中
替换
字符
串的方法有哪些
vim中
替换
字符
串的方法有哪些发布时间:2020-06-04 11:41:18来源:亿速云阅读:238作者:Leah这篇文章为大家带来有关vim中
替换
字符
串的方法介绍,如果在日常学习或工作遇到这个问题,希望大家通过这篇文章的几种方法...
python中
替换
字符
串中
字符
_python
替换
字符
串中的某个
字符
python_split_strip_replace使用方法使用python时会经常要对
字符
串做一些处理,比如:分割
字符
串、去掉空格、
替换
字符
串中的某个
字符
等,下面介绍下这几个功能的使用。一、Split()作用:将
字符
串分割成为列表,不...
ASP
28,406
社区成员
356,946
社区内容
发帖
与我相关
我的任务
ASP
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
复制链接
扫一扫
分享
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章