This work fine .. only problem is that i dont need to strip the 10 digits, but i need that value of 10 digits.. With what command should i replace 'Replace' with?Code:Dim RegEx As Object Dim valid As String Set RegEx = CreateObject("vbscript.regexp") RegEx.Pattern = " \d{10}" valid = RegEx.Replace("this is a test 1234567895 for real", "") MsgBox (valid)
valid is now: "this is a test for real"
i need: value = "1234567895"




Reply With Quote