I've some issues with a program which is fetching information out of an html table in Java. To fetch information out of every column I use the following RegEx:
<td>([^<]*)</td>
This works very nice for me. For fetching the Linknames I use this:
<a[^>]*>(.*?)</a>
This is also working very very good. But sometimes I need informations from a column where a link is in. Therefore I wanted to combine these Regex with:
<td>([^<]*)</td>|<a[^>]*>(.*?)</a>
I thought that it would work like this:
It get every thing which is between
<td>and</td>If the thing is a link it get also just the linkname
But this is not working. I'm not the best at RegEx so I need help to combine these two steps.
Thanks very very very much.