' URL that generated this code:
' http://txt2re.com/index-vb.php3?s=42%2043&2&-5&-8
Imports System.Text.RegularExpressions
Module Module1
Sub Main
Dim txt As String ="42 43"
Dim re1 As String="(4)" '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
::
Thank you thank you thank you :)
Mon, 27 May 2013 08:08PM
::
thks
Wed, 29 May 2013 01:24AM
::
mmamt suchucazz attacat nanz u can randag i nonnt
Wed, 29 May 2013 10:53AM
zk::
great work! super useful, thanks so much!!
Wed, 29 May 2013 05:52PM
KisnardOnline::
perfect perfect perfect... get some ads on this site, so we can thank you more
Wed, 29 May 2013 10:21PM
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 !!!