I have PokerLast.text 3 lines of text.

I need a function that will find the line with "Your cards" and return that full line. not any other lines.

text1.text = GetLine(PokerLast.text, "Your cards")

and text1.text will now display that line. I asked somthing before to get the "lineafter" but now i need to return the current line?