S
Sean
I have been trying to parse a webpage in my own free time and I have
come to yet another regex I can't quiet seem to get. I wanted to get
the data inside the <table> tags, however the html and other daata
inside it span multiple lines and nothing I use seems to work.
My first attempt was: <table .*>(?<Info>.*?)</table>
This worked on <table><td>this is some random sentence</td></table>
but not on:
<table width="100%" border="0" cellspacing="0" cellpadding="0"
class="niceTableBorder">
test
</table>
I tried playing with the whitespace \s escape but nothing seemed to
work.
Is there a highly recommended book for c# regex's that I can pick up
to learn this instead of relying on the usenet group here?
Any help appreciated.
-Sean
come to yet another regex I can't quiet seem to get. I wanted to get
the data inside the <table> tags, however the html and other daata
inside it span multiple lines and nothing I use seems to work.
My first attempt was: <table .*>(?<Info>.*?)</table>
This worked on <table><td>this is some random sentence</td></table>
but not on:
<table width="100%" border="0" cellspacing="0" cellpadding="0"
class="niceTableBorder">
test
</table>
I tried playing with the whitespace \s escape but nothing seemed to
work.
Is there a highly recommended book for c# regex's that I can pick up
to learn this instead of relying on the usenet group here?
Any help appreciated.
-Sean