Any text
>XPATH> //*[text()[contains(.,"abc")]]Any links
>XPATH> //*[contains(@href,"abc")]Hey
I tried to copy text from 2 SOURCES in this format:
word 1
word 2
word 3
and save it to text file.
And output was always like this:
word1word2word3
How can I keep breaklines?
You can add break lines by adding "\r\n" in the expression.
Here is the screenshot:
https://prnt.sc/bym8jn
Basically you should have something like: "Your string" + "\r\n"
but I pasted variable that contains:
word1
word2
word3
if I used your modification, it would be
wordword2word3 BREAKLINE
Anyway thanks, I have done it already with lists.

so variable:
word1
word2
word3
is saved as:
word1word2word3
then I read it from file as list and save to file as list, and its:
word1
word2
word3