Sub CheckSymvol(s As String) As Int
Dim IDCyr As Int, IDNum As Int, IDLat As Int, IDSym As Int, IDPrb As Int, ID As Int
ID=0
If Regex.IsMatch("[\p{IsCyrillic}]*", s)=True Then IDCyr=10000 Else IDCyr=0
If Regex.IsMatch("[\p{N}]*", s)=True Then IDNum=1000 Else IDNum=0
' If Regex.IsMatch("[\d]", s)=True Then IDNum=1000 Else IDNum=0
If Regex.IsMatch("[\p{Po}]*", s)=True Then IDSym=100 Else IDSym=0
If Regex.IsMatch("[\p{IsLatin}]*", s)=True Then IDLat=10 Else IDLat=0
If Regex.IsMatch("[\p{Z}*]", s)=True Or Regex.IsMatch("[\p{Zs}]", s)=True Then IDPrb=1 Else IDPrb=0
' If Regex.IsMatch("[\p{N}]*", s)=True Then IDNum=1001
' If Regex.IsMatch("(.*\n)*", s)=False Then IDNum=1000
ID=IDPrb+IDLat+IDSym+IDNum+IDCyr
' Log("Код строки " & ID)
Return ID
End Sub