Help, please, I can not find the words in the string with the help of the regulars. I tried this:
Pattern d = Pattern.compile("(?<=(<th class=\"plainlist\")(.>)) ([\\s\\S]*)(?=<\\/th>)"); The line is this:
<th class="plainlist" style="min-width:9em; background:#eaecf0; vertical-align:top; padding-left:.5em; padding-right:.5em;">Род деятельности</th><th class="plainlist" style="min-width:9em; background:#eaecf0; vertical-align:top; padding-left:.5em; padding- right:.5em;">Язык произведений</th> <td class="plainlist"> <span class="no-wikidata" data-wikidata-property- id="P1412">русский</span></td> </tr> It takes just two words: activity
My regulars exclude tags, but not their insides in brackets. Please help me figure it out. What am I doing wrong? It is necessary that the regulars find only what is in the tags of th.
html. Use special libraries for this. - YurySPb ♦