' URL that generated this code:
' http://txt2re.com/index-vb.php3?s=42%2043&2&8&6&-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="(\d)" 'Any Single Digit 1
Dim re3 As String=".*?" 'Non-greedy match on filler
Dim re4 As String="(\d+)" 'Integer Number 2
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 int1=m.Groups(1)
Dim d1=m.Groups(2)
Dim int2=m.Groups(3)
Console.WriteLine("("+int1.ToString()+")"+"("+d1.ToString()+")"+"("+int2.ToString()+")"+"")
End If
Console.ReadLine()
End Sub
End Module
'-----
' Paste the code into a new Console Application
'-----
 
Feedback
SmArt::
exactly what i needed :)
Sat, 4 May 2013 11:27AM
jax::
Sir, you made my day :) Awesome work and very nice that its available for free
Sat, 4 May 2013 03:10PM
::
Mon, 6 May 2013 04:06PM
Ynot::
This is the greastest thing since sliced bread!!
Mon, 6 May 2013 10:47PM
::
Ugly site, excellent tool.
Tue, 7 May 2013 04:26PM
FuriousScissors::
Awesome
Thu, 9 May 2013 02:46AM
::
Thanks
Thu, 9 May 2013 07:13AM
Gcankov::
Thank you, kind sir. This is awesome!
Thu, 9 May 2013 11:07AM
bradland::
Love this too sooooo much! Would love an output option that outputs a suitable `grep- E` regex :)
Thu, 9 May 2013 07:50PM
MikeN::
Thanks a lot for putting this out!
Thu, 9 May 2013 08:23PM
µç»°::
Fri, 10 May 2013 04:23AM
takobaba::
thank you, awesome work, awk pls :)
Fri, 10 May 2013 03:56PM
::
Fri, 10 May 2013 04:46PM
::
Fri, 10 May 2013 04:46PM
::
Yes.
Sat, 11 May 2013 09:18PM
exezaid::
bitch please
Sun, 12 May 2013 05:22PM
ron::
mark, this is awesome!
Sun, 12 May 2013 08:57PM
::
Bitch please, you must have a mental disease
Mon, 13 May 2013 12:25AM
::
lving it!
Mon, 13 May 2013 07:56AM
IpSeRc::
Simple, Concise, Usefull, PERFECT. Good App.
Mon, 13 May 2013 10:04AM
::
Round braces detection is not perfect. It skips the ones in middle if there are 2 braces groups. eg: (ab) (ab), it will detect "ab) (ab" in a round braces. At leas in my case.
Mon, 13 May 2013 11:20AM
canners.nl::
Dude: thank you so Much!! Regular Expressions can be such a headache!