' URL that generated this code:
' http://txt2re.com/index-vb.php3?s=Portugal%20a%20programar%20&32
Imports System.Text.RegularExpressions
Module Module1
Sub Main
Dim txt As String ="Portugal a programar "
Dim re1 As String=".*?" 'Non-greedy match on filler
Dim re2 As String ="." 'Uninteresting: c
Dim re3 As String=".*?" 'Non-greedy match on filler
Dim re4 As String ="." 'Uninteresting: c
Dim re5 As String=".*?" 'Non-greedy match on filler
Dim re6 As String ="." 'Uninteresting: c
Dim re7 As String=".*?" 'Non-greedy match on filler
Dim re8 As String ="." 'Uninteresting: c
Dim re9 As String=".*?" 'Non-greedy match on filler
Dim re10 As String ="." 'Uninteresting: c
Dim re11 As String=".*?" 'Non-greedy match on filler
Dim re12 As String ="." 'Uninteresting: c
Dim re13 As String=".*?" 'Non-greedy match on filler
Dim re14 As String ="." 'Uninteresting: c
Dim re15 As String=".*?" 'Non-greedy match on filler
Dim re16 As String ="." 'Uninteresting: c
Dim re17 As String=".*?" 'Non-greedy match on filler
Dim re18 As String ="." 'Uninteresting: c
Dim re19 As String=".*?" 'Non-greedy match on filler
Dim re20 As String ="." 'Uninteresting: c
Dim re21 As String=".*?" 'Non-greedy match on filler
Dim re22 As String ="." 'Uninteresting: c
Dim re23 As String=".*?" 'Non-greedy match on filler
Dim re24 As String ="." 'Uninteresting: c
Dim re25 As String=".*?" 'Non-greedy match on filler
Dim re26 As String ="." 'Uninteresting: c
Dim re27 As String=".*?" 'Non-greedy match on filler
Dim re28 As String ="." 'Uninteresting: c
Dim re29 As String=".*?" 'Non-greedy match on filler
Dim re30 As String ="." 'Uninteresting: c
Dim re31 As String=".*?" 'Non-greedy match on filler
Dim re32 As String ="." 'Uninteresting: c
Dim re33 As String=".*?" 'Non-greedy match on filler
Dim re34 As String ="." 'Uninteresting: c
Dim re35 As String=".*?" 'Non-greedy match on filler
Dim re36 As String ="." 'Uninteresting: c
Dim re37 As String=".*?" 'Non-greedy match on filler
Dim re38 As String ="." 'Uninteresting: c
Dim re39 As String=".*?" 'Non-greedy match on filler
Dim re40 As String ="." 'Uninteresting: c
Dim re41 As String="(.)" 'Any Single Character 1
Dim r As Regex = new Regex(re1+re2+re3+re4+re5+re6+re7+re8+re9+re10+re11+re12+re13+re14+re15+re16+re17+re18+re19+re20+re21+re22+re23+re24+re25+re26+re27+re28+re29+re30+re31+re32+re33+re34+re35+re36+re37+re38+re39+re40+re41,RegexOptions.IgnoreCase Or RegexOptions.Singleline)
Dim m As Match = r.Match(txt)
If (m.Success) Then
Dim c1=m.Groups(1)
Console.WriteLine("("+c1.ToString()+")"+"")
End If
Console.ReadLine()
End Sub
End Module
'-----
' Paste the code into a new Console Application
'-----
 
Feedback
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!
Mon, 13 May 2013 12:44PM
::
Mon, 13 May 2013 02:28PM
::
Best of the best
Tue, 14 May 2013 06:14AM
Anup::
The best I ever use
Tue, 14 May 2013 06:26AM
Ruben::
Great stuff!!
Tue, 14 May 2013 02:49PM
::
Tue, 14 May 2013 04:39PM
::
Tue, 14 May 2013 07:32PM
::
Nice! Where's the "donate" link!
Tue, 14 May 2013 07:33PM
h::
h
Wed, 15 May 2013 02:56PM
::
Wed, 15 May 2013 05:02PM
slevin::
Mind blowing. Missing Objective-c, though!
Wed, 15 May 2013 06:35PM
Zayed::
THANKS A LOT!!!!!!!
Thu, 16 May 2013 05:35PM
::
Thu, 16 May 2013 06:36PM
::
awesome tool!!! thanks from brazil
Thu, 16 May 2013 06:38PM
::
good
Fri, 17 May 2013 08:25AM
Ad::
Just want I needed.. 2 Thrubms up
Fri, 17 May 2013 12:55PM
NEO::
Awesome, wish I found this years ago!
Fri, 17 May 2013 06:36PM
::
nonsense
Sun, 19 May 2013 05:44PM
kichwa_kibov::
lifesaver
Mon, 20 May 2013 02:53PM
I just...::
jizzed myself. This rocks!
Tue, 21 May 2013 03:59AM
fastnfurious::
thank you!
Tue, 21 May 2013 04:45AM
@JohnSReid::
Absolutely incredible
Tue, 21 May 2013 04:53PM
Menzo::
Thanks
Wed, 22 May 2013 12:32PM
::
excellent![/mrburns] too bad that there's no brainfuck-support though