asp 判断上传的文件名称中是否带有中文
2010-11-11 16:12
246 查看
'判断上传的文件名中是否带有中文
Function CheckExp(patrn, strng)
Dim regEx, Match
Set regEx = New RegExp
regEx.Pattern = patrn
regEx.IgnoreCase = true
regEx.Global = True
Matches = regEx.test(strng)
CheckExp = matches
End Function
Function chkzi2(f_Str)
if Not IsNull(f_Str) Then
if CheckExp("^[^/u4E00-/u9FA5]+$", f_Str)=True then
chkzi2=False '不包含中文
Else
chkzi2=True '包含中文
End If
End If
End Function
Function CheckExp(patrn, strng)
Dim regEx, Match
Set regEx = New RegExp
regEx.Pattern = patrn
regEx.IgnoreCase = true
regEx.Global = True
Matches = regEx.test(strng)
CheckExp = matches
End Function
Function chkzi2(f_Str)
if Not IsNull(f_Str) Then
if CheckExp("^[^/u4E00-/u9FA5]+$", f_Str)=True then
chkzi2=False '不包含中文
Else
chkzi2=True '包含中文
End If
End If
End Function
相关文章推荐
- 解决asp.net中使用FckEditor上传文件,中文名称乱码的问题
- asp 判断上传文件中是否存在危险代码
- asp.net FileUpload 判断上传文件是否为图片
- 解决asp.net中使用FckEditor上传文件,中文名称乱码的问题
- asp 判断上传文件中是否存在危险代码
- asp.net 上传判断文件是否为图片
- 判断文件夹中是否含有中文名称的文件
- laravel判断上传文件是否有效
- 用ASP.net判断上传文件类型的三种方法
- asp.net 将文件 二进制 上传 保存 再显示,解决文件流中文乱码问题。
- 判断上传的文件和数据库保存的文件是否一致
- asp.net 2.0中判断上传的图片是否符合规格
- asp.net上传文件使用fileupload控件,判断文件类型和大小,取得文件路径时报错【System.IO.FileNotFoundException:未能找到文件】的解决办法
- 判断上传文件是否是图片文件
- ASP.NET上传文件带有真实的进度条
- C#判断上传文件是否是图片,防止木马上传
- ASP.NET上传判断类型,防止黑客上传非法文件
- C#判断上传文件是否是图片以防止木马上传的方法
- C#判断上传文件是否是图片,防止木马上传
- ASP.net 2.0 C#判断文件夹与文件是否存在