try this:
vb Code:
Dim testStr As String = "this is 7777 7777 7777 7777" Dim rx As New Regex("[0-9]{4}\s[0-9]{4}\s[0-9]{4}\s[0-9]{4}") MsgBox(Regex.Replace(rx.Match(testStr).Value, " ", ""))
|
Results 1 to 3 of 3
Thread: [RESOLVED] RegexpThreaded View
|
Click Here to Expand Forum to Full Width |