' URL that generated this code:
' http://txt2re.com/index-vb.php3?s=42%2043&2&11&13
Imports System.Text.RegularExpressions
Module Module1
Sub Main
Dim txt As String ="42 43"
Dim re1 As String="(.)" 'Any Single Character 1
Dim re2 As String="(.)" 'Any Single Character 2
Dim re3 As String=".*?" 'Non-greedy match on filler
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 c1=m.Groups(1)
Dim c2=m.Groups(2)
Dim int1=m.Groups(3)
Console.WriteLine("("+c1.ToString()+")"+"("+c2.ToString()+")"+"("+int1.ToString()+")"+"")
End If
Console.ReadLine()
End Sub
End Module
'-----
' Paste the code into a new Console Application
'-----
 
Feedback
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 !!!