asp一个字符串,想去掉字符串中的某个数,怎么办
我有一个字符串215,278,274,277,279想要删除215,只剩下278,274,277,279或者删除,279只剩下215,278,274,277再或者我删除2...
我有一个字符串215,278,274,277,279
想要删除215,只剩下278,274,277,279
或者删除,279只剩下215,278,274,277
再或者我删除278只剩下215,274,277,279
请问该怎么写,求大家帮帮忙啦 展开
想要删除215,只剩下278,274,277,279
或者删除,279只剩下215,278,274,277
再或者我删除278只剩下215,274,277,279
请问该怎么写,求大家帮帮忙啦 展开
展开全部
str ="215,278,274,277,279"
temp ="278"
replace(replace(str,","+temp,""),temp+",","")
temp ="278"
replace(replace(str,","+temp,""),temp+",","")
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询