Function yyy$(t$)
With CreateObject("VBScript.RegExp"): .Global = True: .IgnoreCase = True
.Pattern = "(?:[^а-яё\w]|^)[а-яё\w]{3,}(?=[^а-яё\w]|$)"
yyy = .Replace(t, "+$&")
End With
End Function
Function aaa$(t$)
With CreateObject("VBScript.RegExp"): .Global = True: .IgnoreCase = True
.Pattern = "(?:\s|^)[а-яё\w]{3,}(?=\s|$)"
aaa = .Replace(t, "+$&")
End With
End Function
Function zzz$(t$)
With CreateObject("VBScript.RegExp"): .Global = True: .IgnoreCase = True
.Pattern = "(?:[^а-яё\w]|^)[а-яё\w]{3,}(?=[^а-яё\w]|$)"
zzz = .Replace(t, "+$&"): zzz = Replace(zzz, "+ ", " +")
End With
End Function
Function ПРИСТАВИТЬ_ПЛЮС(Str$) As String
Dim a, i&
a = Split(Str)
For i = 0 To UBound(a)
If Len(a(i)) > 2 Then a(i) = "+" & a(i)
Next
ПРИСТАВИТЬ_ПЛЮС = Join(a)
End Function