您现在的位置是:网站首页> 编程资料编程资料
ReplaceTrim 函数之asp实现过滤掉字符中所有的tab和回车和换行的代码_应用技巧_
2023-05-25
173人已围观
简介 ReplaceTrim 函数之asp实现过滤掉字符中所有的tab和回车和换行的代码_应用技巧_
'================================================
'函数名:ReplaceTrim
'作 用:过滤掉字符中所有的tab和回车和换行
'================================================
Public Function ReplaceTrim(ByVal strContent)
On Error Resume Next
Dim re
Set re = New RegExp
re.IgnoreCase = True
re.Global = True
re.Pattern = "(" & Chr(8) & "|" & Chr(9) & "|" & Chr(10) & "|" & Chr(13) & ")"
strContent = re.Replace(strContent, vbNullString)
Set re = Nothing
ReplaceTrim = strContent
Exit Function
End Function
'函数名:ReplaceTrim
'作 用:过滤掉字符中所有的tab和回车和换行
'================================================
Public Function ReplaceTrim(ByVal strContent)
On Error Resume Next
Dim re
Set re = New RegExp
re.IgnoreCase = True
re.Global = True
re.Pattern = "(" & Chr(8) & "|" & Chr(9) & "|" & Chr(10) & "|" & Chr(13) & ")"
strContent = re.Replace(strContent, vbNullString)
Set re = Nothing
ReplaceTrim = strContent
Exit Function
End Function
您可能感兴趣的文章:
相关内容
- FormatRemoteUrl函数之asp实现格式化成当前网站完整的URL-将相对地址转换为绝对地址的代码_应用技巧_
- ASP+XML实例演练编程代码第1/3页_应用技巧_
- asp实现防止从外部提交数据的三种方法第1/3页_应用技巧_
- asp又一个分页的代码例子_应用技巧_
- asp下的一个很简单的验证码程序第1/3页_应用技巧_
- asp实现一个统计当前在线用户的解决方案_应用技巧_
- 一些Asp技巧和实用解决方法_应用技巧_
- asp下最常用的19个基本技巧第1/2页_应用技巧_
- ASP之处理用Javascript动态添加的表单元素数据的代码_应用技巧_
- 用ASP编写的加密和解密类_ASP CLASS类_
