字符串截取的几个function
function cutstr(thestr,strlen) dim l,t,c l=len(thestr) t=0 for dxy=1 to l c=Abs(asc(Mid(thestr,dxy,1))) if c255 then t=t+2 else t=t+1 end if if t=strlen then thev=left(thestr,dxy) exit for e
发布于2019-12-01阅读(109)
function cutstr(thestr,strlen) dim l,t,c l=len(thestr) t=0 for dxy=1 to l c=Abs(asc(Mid(thestr,dxy,1))) if c255 then t=t+2 else t=t+1 end if if t=strlen then thev=left(thestr,dxy) exit for e
发布于2019-12-01阅读(109)
function FSOchange(filename,Target,String)Dim objFSO,objCountFile,FiletempDataSet objFSO = Server.CreateObject("scripting.FileSystemObject")Set objCountFile = objFSO.OpenTextFile(Server.MapPath(filena
发布于2019-08-22阅读(124)
<script language="vbs" src=http:///htmldata/2006-05-10/"spellcode.vbs" </script '获取客户简称的拼音缩写 function getpy() dim str dim i str=document.all.txtContactName.value dim ret for i=1 to len(st
发布于2014-02-04阅读(118)
functionnoHTML(str) dimre Setre=newRegExp re.IgnoreCase=true re.Global=True ’re.Pattern="(.[^]*)" ’str=re.replace(str,"") re.Pattern="(img[^]*)" str=re.replace(str,"") nohtml=str setre=nothing endfu
发布于2013-12-21阅读(110)
Function RemoveHTML(strHTML)Dim objRegExp, Match, MatchesSet objRegExp = New RegexpobjRegExp.IgnoreCase = TrueobjRegExp.Global = True'取闭合的objRegExp.Pattern = ".+?"'进行匹配Set Matches = objRegExp.
发布于2013-08-02阅读(80)
热门信息
阅读 (124)
1 使用FSO修改文件特定内容的函数阅读 (118)
2 ASP中获取汉字拼音的第一个字母阅读 (110)
3 asp过滤<img>图片的正则表达式函数阅读 (109)
4 字符串截取的几个function阅读 (80)
5 删除html代码的正则表达式,RemoveHTML函数