Function ff(s As String)
Dim s1 As String
Dim n As Integer
Dim i As Integer
Dim a1 As Integer
a1 = 0
's = "中国zg2008k/300个人"
n = Len(s)
For i = 1 To n
s1 = Mid(s, i, 1)
If InStr("abcdefghijklmnopqrstuvwxyz", s1) > 0 Then
a2 = 1
If a2 = a1 Then
s2 = s2 & s1
Else
s2 = s2 & " " & s1
a1 = 1
End If
Else
If InStr("1234567890", s1) > 0 Then
a2 = 2
If a2 = a1 Then
s2 = s2 & s1
Else
s2 = s2 & " " & s1
a1 = 2
End If
Else
If InStr("+-*\/!<>", s1) > 0 Then
a2 = 3
If a2 = a1 Then
s2 = s2 & s1
Else
s2 = s2 & " " & s1
a1 = 3
End If
Else
If a1 = 0 Then
s2 = s2 & s1
Else
s2 = s2 & " " & s1
a1 = 0
End If
End If
End If
End If
Next
ff = s2