Good day.

There is a text

TOTALT < Kommentar: Som vanligt blir Lexus-hybriden törstig i våra tester. Mercedes imponerar på väg. 8 7 

How can I find only the phrase from "Som" to "väg.". And the text I do not know, that is, I only know

 TOTALT < Kommentar: 

and I know that after the desired phrase there is a transition to the line (2 times) and then some number.

    1 answer 1

    Something like this:

     TOTALT\n\n< Kommentar: ([\s\S]+?)(?=\n\n\d+) 

    and take the first group.