欢迎大家光临【无师自通-教程网】您的到来是我们的荣幸。本站提供photoshop教程,ps教程,flash教程,cad教程,网页制作教程,excel教程,asp教程,vb教程,3d教程,c语言教程,html教程,coreldraw教程,dreamweaver教程,java教程,3dmax教程 等各种教程为主题的内容和服务,相信您会在这里找到您所需要的东东。无师自通伴您一生-谢谢您的光临!!
网站地图 设为首页
简繁切换 加入收藏
栏目待定 留言本站
您现在的位置: 无师自通-教程网 >> WEB开发 >> Asp教程 >> ASP应用 >> 教程正文

  没有公告

教程: ASP教程-ASP应用-不用正则表达式来实现非大小写替换 更多...
教程: ASP教程-ASP应用-不用正则表达式来实现非大小写替换
Function ReplaceNoIgnoreCase(str,replStr)</P><P>If len(replStr)<1 or str="" Then
ReplaceTest=str
Exit function
End If</P><P>Dim LoopN
LoopN=1</P><P>Dim TmpStr,inStrN,LenreplStr,Ustr,UreplStr
LenreplStr = Len(replStr)
TmpStr = str
Ustr = Ucase(str)
UreplStr = Ucase(replStr)
str=""</P><P>inStrN = inStr(Ustr,UreplStr) </P><P>Do While inStrN>0 and TmpStr<>""
LoopN = LoopN 1
If LoopN>10 Then Exit Function
str=str & Left(TmpStr,inStrN-1)
TmpStr = Mid(TmpStr,inStrN)
UStr = Mid(UStr,inStrN)
str=str & "<font color=ff0000>" & Left(TmpStr,LenreplStr) & "</font>"
TmpStr = Mid(TmpStr,LenreplStr 1)
UStr = Mid(UStr,LenreplStr 1)
inStrN = inStr(Ustr,UreplStr)
If inStrN<1 Then str=str&TmpStr
Loop
ReplaceTest = str</P><P>End Function</P><P>Response.Write "<p>result:"&ReplaceNoIgnoreCase("WenMingdazhou Mingda Electrical Mingda Equipment
Co.mIngda,Ltd ","Mingda")

教程录入:admin    责任编辑:admin 
  • 上一篇教程:

  • 下一篇教程:
  • 【字体: 】【发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口
     
     
     
     

    asp连接mysql数据库

    asp连接mysql数据库-2

    frontpage2000教程---制作主页
    免责声明!本站资料大部分来自于互联网,其版权归原作者或其他合法者所有.如内容涉及或侵犯了您的权益,请通知本人,我将尽快处理!.欢迎您的光临。
    辽ICP备07003958号
    无师自通,伴你一生-教程网