获取中英文字符串长度
来源:互联网 发布:网络打假流程 编辑:程序博客网 时间:2024/05/22 10:24
Function LenStr(sContent)
Dim regEx,Match,Matches
Set regEx = New RegExp
regEx.Pattern ="[^/x00-/xff]"
regEx.IgnoreCase = False
regEx.Global = True
Set Matches = regEx.Execute(sContent)
For Each Match in Matches
RetStr = RetStr&Match.Value
Next
LenStr = RetStr
End Function
sContent = "我hen爱nia"
Str = LenStr(sContent)
Response.Write Len(Str)+Len(sContent)
- 获取中英文字符串长度
- 中英文字符串长度获取方法
- JS获取字符串长度(区分中英文)
- PHP获取字符串中英文混合长度
- PHP获取字符串中英文混合长度
- 中英文混合字符串长度
- 截取中英文字符串长度
- 3种获取中英文混合字符串长度的方法
- javascript获取中英文混合字符串的长度方法
- iOS中英文混排,获取字符串长度(中文字符数)
- PHP获取中英文混合字符串长度及截取
- PHP如何获取中文和 中英文混字符串长度
- iOS中英文混排,获取字符串长度(中文字符数)
- iOS中英文混排,获取字符串长度(中文字符数)
- 获取包含中英文的字符串的自然长度
- 获取中英文混排字符串的实际长度(字节数)
- js判断中英文字符串长度
- JS判断中英文字符串长度
- TCP/UDP 端口及部分端口的作用
- can you do it
- 托管和非托管资源概念
- 一道题
- 托管和非托管资源概念二
- 获取中英文字符串长度
- 博士论文
- stuggest 改进嵌入到项目中
- IBATIS项目配置(例)
- Flex弹出窗口
- 使用IEnumerator,IEnumerable接口制作一个简单的迭代器
- 近日小感
- ns2下安装UMTS扩展(EURANE的多cell版本(Abdulmohsen M. Mutairi开发))
- poj 1065 Wooden Sticks