This is only for a small Android program I am messing with so I only need to match one or two tags
I have one HTML tag and I can get whats inside that tag which is "FC-Cologne" I use this code to get it
Pattern pattern = Pattern.compile("report\">(.*?)</a>",Pattern.MULTILINE);
here is the HTML tag I can get to work
<a href="/match-menu/3405570/first-team/fc-cologne=report"> FC Cologne</a>
But I can't get this tag, I don't know is it because of the space after the word "opposition" or/and the quotes inside the HTML tag, because they are not in the first tag
This is the one I can't get to work
<td class="bold opposition "> "Olympiacos" </td>
This is the code I am trying
Pattern pattern = Pattern.compile("opposition \">(.*?)</td>",Pattern.MULTILINE);
I have tried replacing the spaces " " with "" an empty string and I have tried \s where the space is but I get nothing.
I would appreciate if anyone could help me.