RegEx Regular Expressions Basics For VB.Net Or Visual Basic 2008

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Im interested in learning Regular Expressions for visual basic 2008. Lately I have been trying to make programs that could simplify my Keyword Research and analysis for various Internet Marketing projects. I came to the conclusion that learning Regex to
gather/extract/parse text and html from particular web pages would definitely help me out a lot.
Well I would like to learn the most basic RegEx examples for visual basic 2008.

Here is an example (however its not very basic):

<pre style="font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; list-style-type:none; text-decoration:none; word-wrap:break-word; text-align:left; font-size:13px; line-height:16px; padding:0px; margin:0px; border:initial none initial <span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; color:blue; padding:0px; margin:0px; border:0px initial initial <<span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; color:#a31515; padding:0px; margin:0px; border:0px initial initial td <span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; color:red; padding:0px; margin:0px; border:0px initial initial style<span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; color:blue; padding:0px; margin:0px; border:0px initial initial =<span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; color:blue; padding:0px; margin:0px; border:0px initial initial "min-width: 100px; " <span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; color:red; padding:0px; margin:0px; border:0px initial initial align<span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; color:blue; padding:0px; margin:0px; border:0px initial initial =<span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; color:blue; padding:0px; margin:0px; border:0px initial initial "right" <span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; color:red; padding:0px; margin:0px; border:0px initial initial class<span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; color:blue; padding:0px; margin:0px; border:0px initial initial =<span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; color:blue; padding:0px; margin:0px; border:0px initial initial "aw-td body-td"<span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; color:blue; padding:0px; margin:0px; border:0px initial initial >4,400<span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; color:blue; padding:0px; margin:0px; border:0px initial initial </<span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; color:#a31515; padding:0px; margin:0px; border:0px initial initial td<span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; color:blue; padding:0px; margin:0px; border:0px initial initial >[/code]
<pre style="font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; list-style-type:none; text-decoration:none; word-wrap:break-word; text-align:left; font-size:13px; line-height:16px; padding:0px; margin:0px; border:initial none initial <span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; color:blue; padding:0px; margin:0px; border:0px initial initial <pre style="font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; list-style-type:none; text-decoration:none; word-wrap:break-word; padding:0px; margin:0px; border:initial none initial <span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; color:blue; padding:0px; margin:0px; border:0px initial initial <<span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; color:#a31515; padding:0px; margin:0px; border:0px initial initial td <span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; color:red; padding:0px; margin:0px; border:0px initial initial style<span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; color:blue; padding:0px; margin:0px; border:0px initial initial =<span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; color:blue; padding:0px; margin:0px; border:0px initial initial "min-width: 100px; " <span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; color:red; padding:0px; margin:0px; border:0px initial initial align<span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; color:blue; padding:0px; margin:0px; border:0px initial initial =<span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; color:blue; padding:0px; margin:0px; border:0px initial initial "right" <span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; color:red; padding:0px; margin:0px; border:0px initial initial class<span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; color:blue; padding:0px; margin:0px; border:0px initial initial =<span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; color:blue; padding:0px; margin:0px; border:0px initial initial "aw-td body-td"<span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; color:blue; padding:0px; margin:0px; border:0px initial initial >8,000<span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; color:blue; padding:0px; margin:0px; border:0px initial initial </<span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; color:#a31515; padding:0px; margin:0px; border:0px initial initial td<span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; color:blue; padding:0px; margin:0px; border:0px initial initial >[/code]
<pre style="font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; list-style-type:none; text-decoration:none; word-wrap:break-word; padding:0px; margin:0px; border:initial none initial <span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; color:blue; padding:0px; margin:0px; border:0px initial initial <pre style="font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; list-style-type:none; text-decoration:none; word-wrap:break-word; font-size:13px; padding:0px; margin:0px; border:initial none initial <span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; color:blue; padding:0px; margin:0px; border:0px initial initial <<span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; color:#a31515; padding:0px; margin:0px; border:0px initial initial td <span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; color:red; padding:0px; margin:0px; border:0px initial initial style<span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; color:blue; padding:0px; margin:0px; border:0px initial initial =<span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; color:blue; padding:0px; margin:0px; border:0px initial initial "min-width: 100px; " <span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; color:red; padding:0px; margin:0px; border:0px initial initial align<span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; color:blue; padding:0px; margin:0px; border:0px initial initial =<span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; color:blue; padding:0px; margin:0px; border:0px initial initial "right" <span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; color:red; padding:0px; margin:0px; border:0px initial initial class<span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; color:blue; padding:0px; margin:0px; border:0px initial initial =<span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; color:blue; padding:0px; margin:0px; border:0px initial initial "aw-td body-td"<span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; color:blue; padding:0px; margin:0px; border:0px initial initial >5,300<span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; color:blue; padding:0px; margin:0px; border:0px initial initial </<span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; color:#a31515; padding:0px; margin:0px; border:0px initial initial td<span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; color:blue; padding:0px; margin:0px; border:0px initial initial >[/code]
<pre style="font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; list-style-type:none; text-decoration:none; word-wrap:break-word; font-size:13px; padding:0px; margin:0px; border:initial none initial <span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; color:blue; padding:0px; margin:0px; border:0px initial initial <pre style="font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; list-style-type:none; text-decoration:none; word-wrap:break-word; padding:0px; margin:0px; border:initial none initial <span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; color:blue; padding:0px; margin:0px; border:0px initial initial <<span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; color:#a31515; padding:0px; margin:0px; border:0px initial initial td <span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; color:red; padding:0px; margin:0px; border:0px initial initial style<span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; color:blue; padding:0px; margin:0px; border:0px initial initial =<span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; color:blue; padding:0px; margin:0px; border:0px initial initial "min-width: 100px; " <span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; color:red; padding:0px; margin:0px; border:0px initial initial align<span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; color:blue; padding:0px; margin:0px; border:0px initial initial =<span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; color:blue; padding:0px; margin:0px; border:0px initial initial "right" <span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; color:red; padding:0px; margin:0px; border:0px initial initial class<span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; color:blue; padding:0px; margin:0px; border:0px initial initial =<span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; color:blue; padding:0px; margin:0px; border:0px initial initial "aw-td body-td"<span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; color:blue; padding:0px; margin:0px; border:0px initial initial >6,100<span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; color:blue; padding:0px; margin:0px; border:0px initial initial </<span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; color:#a31515; padding:0px; margin:0px; border:0px initial initial td<span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; color:blue; padding:0px; margin:0px; border:0px initial initial >[/code]
<pre style="font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; list-style-type:none; text-decoration:none; word-wrap:break-word; padding:0px; margin:0px; border:initial none initial <span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; color:blue; padding:0px; margin:0px; border:0px initial initial <pre style="font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; list-style-type:none; text-decoration:none; word-wrap:break-word; font-size:13px; padding:0px; margin:0px; border:initial none initial <span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; color:blue; padding:0px; margin:0px; border:0px initial initial <<span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; color:#a31515; padding:0px; margin:0px; border:0px initial initial td <span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; color:red; padding:0px; margin:0px; border:0px initial initial style<span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; color:blue; padding:0px; margin:0px; border:0px initial initial =<span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; color:blue; padding:0px; margin:0px; border:0px initial initial "min-width: 100px; " <span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; color:red; padding:0px; margin:0px; border:0px initial initial align<span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; color:blue; padding:0px; margin:0px; border:0px initial initial =<span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; color:blue; padding:0px; margin:0px; border:0px initial initial "right" <span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; color:red; padding:0px; margin:0px; border:0px initial initial class<span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; color:blue; padding:0px; margin:0px; border:0px initial initial =<span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; color:blue; padding:0px; margin:0px; border:0px initial initial "aw-td body-td"<span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; color:blue; padding:0px; margin:0px; border:0px initial initial >1,200<span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; color:blue; padding:0px; margin:0px; border:0px initial initial </<span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; color:#a31515; padding:0px; margin:0px; border:0px initial initial td<span style="font-style:inherit; font-family:inherit; outline-width:0px; outline-style:initial; outline-color:initial; color:blue; padding:0px; margin:0px; border:0px initial initial >[/code]
[/code]
[/code]
[/code]
[/code]


Know I know that this isnt a very basic example, but could someone show me an example of how I can use regex to parse the data to a textbox2.text from textbox1.text with a click of a button?
I would like for any random number in the <td>?</td> to be parsed from textbox1.text and sent to textbox2.text via a click of a button1.
I would like for the most concise code if possible because I am new to RegEx and vb.net in general.
Any help would be greatly appreciated!
<img src="http://social.microsoft.com/Forums/getfile/35605/" alt=" <hr class="sig Inforequester123 - social.msdn.microsoft.com forums

View the full article
 

Similar threads

Back
Top