Dim data As String = "abc11234-455555cccdddrrr" 'Dim data As String = "abc11234-455555-cccdddrrr" Dim catchs As New System.Text.RegularExpressions.Regex("-{1}[0-9]+") Dim mc As System.Text.RegularExpressions.MatchCollection = catchs.Matches(data) msgbox(mc(0).Value.SubString(1))