' URL that generated this code:
' http://txt2re.com/index-vb.php3?s=42%2043&2&8&-5
Imports System.Text.RegularExpressions
Module Module1
Sub Main
Dim txt As String ="42 43"
Dim re1 As String="(\d)" 'Any Single Digit 1
Dim re2 As String=".*?" 'Non-greedy match on filler
Dim re3 As String="( )" 'White Space 1
Dim re4 As String="(\d+)" 'Integer Number 1
Dim r As Regex = new Regex(re1+re2+re3+re4,RegexOptions.IgnoreCase Or RegexOptions.Singleline)
Dim m As Match = r.Match(txt)
If (m.Success) Then
Dim d1=m.Groups(1)
Dim ws1=m.Groups(2)
Dim int1=m.Groups(3)
Console.WriteLine("("+d1.ToString()+")"+"("+ws1.ToString()+")"+"("+int1.ToString()+")"+"")
End If
Console.ReadLine()
End Sub
End Module
'-----
' Paste the code into a new Console Application
'-----
 
Feedback
ShubhamGupta::
Saved my day!
Wed, 29 May 2013 11:36PM
::
Thu, 30 May 2013 12:02AM
Astarte::
Awesome, just awesome!
Thu, 30 May 2013 12:03AM
David Dawkins::
Excellent tool, where's the donate link? thank-you !!!