' URL that generated this code:
' http://txt2re.com/index-vb.php3?s=42%2043&2&-13&-1
Imports System.Text.RegularExpressions
Module Module1
Sub Main
Dim txt As String ="42 43"
Dim re1 As String="(42)" 'Integer Number 1
Dim re2 As String="(4)" 'Any Single Character 1
Dim re3 As String=".*?" 'Non-greedy match on filler
Dim re4 As String ="\d+" 'Uninteresting: int
Dim re5 As String=".*?" 'Non-greedy match on filler
Dim re6 As String="(\d+)" 'Integer Number 2
Dim r As Regex = new Regex(re1+re2+re3+re4+re5+re6,RegexOptions.IgnoreCase Or RegexOptions.Singleline)
Dim m As Match = r.Match(txt)
If (m.Success) Then
Dim int1=m.Groups(1)
Dim c1=m.Groups(2)
Dim int2=m.Groups(3)
Console.WriteLine("("+int1.ToString()+")"+"("+c1.ToString()+")"+"("+int2.ToString()+")"+"")
End If
Console.ReadLine()
End Sub
End Module
'-----
' Paste the code into a new Console Application
'-----
 
Feedback
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 !!!