Hey, I've been struggling with this regex and I'm out of ideas. I have this types of strings (not all of them are here, but only this 2 types) and I have to extract the part between the th tags.
<th class="tip" title='manje'>manje</th>
<th class="tip" title='ne d.'>ne d.</th>
<th class="tip" title='manje'>manje</th>
<th class="tip" title='točno'>točno</th>
<th class="tip" title='više'>više</th>
<th class="tip" title='m./t.'>m./t.</th>
<th class="tip" title='v./t.'>v./t.</th>
<th class="tip">daje</th>
<th class="tip">X2</th>
<th class="tip">12</th>
I've tried some combinations bu I only get the value if there is no that attribute "title" in th tag.
This pattern only extracts the content if there is no "title" attribute in th tag:
Pattern pattern = Pattern.compile("<th class=\"tip\"[\\s*|[.]{0,20}]>(.*?)\\s*</th>");
This one also:
Pattern patternType = Pattern.compile("<th class=\"tip\"[\\s*|[.]{0,20}]>(.*?)\\s*</th>");
Any suggestions? Tnx