Using Code:
Dim RXLIKEIT As New System.Text.RegularExpressions.Regex("(?<="">).+?(?=</a></td>\s<td>)")
MsgBox("Did you mean't:" & (RXLIKEIT.Match(DL).Value))
How do i put it show more results than only one "RXLIKEIT"?
Some help please? :)
Printable View
Using Code:
Dim RXLIKEIT As New System.Text.RegularExpressions.Regex("(?<="">).+?(?=</a></td>\s<td>)")
MsgBox("Did you mean't:" & (RXLIKEIT.Match(DL).Value))
How do i put it show more results than only one "RXLIKEIT"?
Some help please? :)
The regular expression class has a matches property which will return a collection of matches:
Code:Dim sb As New StringBuilder
sb.AppendLine("Possible matches are:")
For Each m As Match In RXLIKEIT.Matches(DL)
sb.AppendLine(m.Value)
Next
MessageBox.Show(sb.ToString())
Unknown word "StringBuilder"
It is in the System.Text namespace.
For Each m As Match In RXLIKEIT.Matches(DL)
sb.AppendLine(m.Value)
Next
Can i ask. What this "m" is in this? :o
m is a match. The For Each loop is looping through the list of matches and assigning the variable m with the current match from the loop.
Read up on the For Each statement:http://msdn.microsoft.com/en-us/library/5ebk1751.aspx
Thanks :)
I don't still understand this :D
I readed about it but so wierd still.