
Function ClearName(ByVal strText As String, ByVal strPattern As String, ByVal strReplacement As String) As String
    Dim RegExp As Object
    Set RegExp = CreateObject("vbscript.regexp")
    With RegExp
        .Pattern = strPattern
        .Global = True
        ClearName = .Replace(Trim(strText), strReplacement)
    End With
End Function
Sub Test()
    MsgBox ClearName("P##rover>ka Prov#e>r<<<ka#", "[#<>]", "")
End Sub


Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 4