I've got a problem with regular expressions in C#. I want to analyse the html code of a simple webpage. It look like this:
<td class="ivu_table_c_dep"> 12:05 </td>
<td class="ivu_table_c_line"> Bus 398 </td>
<td>
<img src="/IstAbfahrtzeiten/img/css/link.gif" alt="" />
<a class="catlink" href="http://mobil.bvg.de/Fahrinfo/bin/stboard.bin/dox?boardType=dep&input=S Mahlsdorf!&time=12:05&date=15.02.2012&&" title="interner Link: Information zu dieser Haltestelle">S Mahlsdorf</a>
What I want to know is "12:05", "Bus 398" and "S Mahlsdorf". With the first 2 parts I get it to work with the following code:
Regex HTMLTag = new Regex("ivu_table_c_dep\">([^<>]*)</td>([^<>]*)<td class=\"ivu_table_c_line\">([^<>]*)</td>");
But I don't get the 3. part. I tried to add "([^(\">)])([^<>])". But it doesnt't work.