How to find and select in any html only text with spaces but without tabs and line breaks and not select the tags themselves.
From the opposite, I succeeded, but as I looked above - no
<html>
<body>
<h1> text1</h1>
<p>text2</p>
text14
<p> text3 </p>
text2
</body>
</html>
This is what I got:
<[^>]+>(.+?)<\/[^>]+>
` and situations like `
aaabbbccc
`. Assuming you want any text, outside of tags, you might start with something like [`(?<=>\s*)(?!\s)[^<>]+(?<!\s)`](https://regex101.com/r/IanGer/2). – markalex Jun 27 '23 at 13:56