利用正则表达式计算含有中文的字符串长度
| |
[QUOTE][code]
using System; using System.Text.RegularExpressions;
namespace LangZi GetLength#region GetLength for(int i=0; i<strSource.Length; i++) return nLength; |
利用正则表达式计算含有中文的字符串长度
| |
[QUOTE][code]
using System; using System.Text.RegularExpressions;
namespace LangZi GetLength#region GetLength for(int i=0; i<strSource.Length; i++) return nLength; |