I’m parsing a bunch of HTML files where I have to extract some contents. Let’s say I have the following:
<div class="someclass">some content</div>
I would like to extract some content. I’m currently targeting the whole line with a regex:
and then removing the markup. Is there any way to make a regex like:
And then copy only the results of the capture group, and not the entire search result?
Thanks in advance for any help!