There is html. From it you need to pull out the text, which can be completely different characters, so you can only push off from the tags. To the right of the text we have only the final tags - this issue has been resolved with the help of " ((<\/.*>[\r\n\s]*)+)$ ". The text itself is marked with " .* ". To the left of the text will always be ">". Here there was a problem - if you use " (?<=>) " - then the regular occurrence is the first occurrence and, naturally, a result curve is issued. Interests the following: how can you designate " (?<=>) " So that it would be the last entry. Or, perhaps, there is some other solution to the problem.

    1 answer 1

    1) Either use non -greedy use-greedy-and-superjade- use checks

    2) Or for text use [^>]

    What will suit you more.