مثلا:
askl23lkjl555lkjp8poii7789 --> 23 555 8 7789
Function CleanString(strIn As String) As String
Dim objRegex
Set objRegex = CreateObject("vbscript.regexp")
With objRegex
.Global = True
.Pattern = "[^\d]+"
CleanString = .Replace(strIn, " ")
End With
End Function







کامنت