<span style="white-space: pre; background-color: rgb(255, 255, 0);"> </span><span style="background-color: rgb(255, 255, 0);">CString strRet = _T("");
for (int i = 0; i<str22.GetLength(); i++)
{
if (str22.GetAt(i) >= '0'&&str22.GetAt(i) <= '9' || str22.GetAt(i) >= 'a'&&str22.GetAt(i) <= 'z' || str22.GetAt(i) >= 'A'&&st</span><span style="white-space: pre; background-color: rgb(255, 255, 0);"> </span><span style="background-color: rgb(255, 255, 0);">r22.GetAt(i) <= 'Z')</span><span style="background-color: rgb(51, 255, 51);">//提取数字英文</span><span style="background-color: rgb(255, 255, 0);">
strRet += str22.GetAt(i);
else if (str22.GetAt(i) >= 0x4e00 && str22.GetAt(i) <= 0x9fa5)</span><span style="background-color: rgb(51, 255, 51);">//提取中文字符</span><span style="background-color: rgb(255, 255, 0);">
{
strRet += str22.GetAt(i);
}
else continue;
}
str22 = strRet;</span>
unicode 字符范围链接http://blog.youkuaiyun.com/error/404.html?from=http%3a%2f%2fblog.youkuaiyun.com%2fxla9071352%2farticle%2fdetails%2f52336162