Here is another way to do it.
Dim NameoftheDataGrid(,) As String = { _
{"columnheadname", "System.String"}, _
{"columnheadname", "System.String"}, _
{"columnheadname", "System.String"}, _
{"columnheadname", "System.String"}, _...
James:
How can I send you attachment? I need to show you the block of the text the pattern is searching for the matches. It is a screen capture.
Here is the table I copied from our intranet, but you cannot see the tags.
Date DS
Used
(KB) DS
Available
(KB) DS
Total
(KB) PS
Used
(KB) PS...
James:
I have just found out that the numPatter: (?<=<td align=middle>)([:\d\s]+)(?=</td) works.
The datePattern : "(<TR>)[<>/=:\d\sa-a-zA-Z]+?(/TR>)"
skips every other row, e.g. it mtaches the 2 row, 4th row, etc. That is why I did not get the num data on the row I try to get the matches...
Jame:
Sorry to bother you again. The numPattern does not get anything.
(?<=<td align=middle>)([:\d\s]+)(?<=</td>)
I do not quite understand([:\d\s]+).
Thanks,
KWright
Jame:
VB.NT still does not like the like:
regExp = New Regex(datePattern, selectedRegexOptions)
I will try to tweak the pattern a little bit to see if it will work.
Thanks again for taking the time to help me!!
KHWright
Jame:
I rewrote the function, but the program stop at following line:
regExp = New Regex(datePattern)
It seems that it did not like my datePattern. The following is my code for the function. Willl you have a look at the code to help me find the error? Thanks.
To my understanding...
James:
Thanks you SO MUCH for spending time to work this out for me. I will try it this morning and let you know the results.
I really appreciate your help, James!!!-:)
KHWright
Hi, Everyone:
Thank you so much for your help with my debug question posted yesterday. I am sorry that I need your help again.
The following is a function a wrote in VB.NET to use the regular expression to get a few numbers from a block of text I grabed from a table on our intranet. It...
Hello, everyone:
I am a new member of this group and need your help to dibug my code. I wrote a function named "getMemoryData" and it gives me an error message saying that the arguments are not specified,but I did. Will you help me to see the error(s) that I cannot see? Thanks.
The part of...
Hello, everyone:
I am a new member of this group and need your help with the following search pattern I wrote. I am tryinhg to get the numbers of the 4th column (Cell) and same them as "bts", but it does nt work. Will you please tell me what is wrong with my code? Thanks.
Here is the code...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.