How to combine a line to the end of a text file?

In this line of code, I want it to match the line from "Viewing notes \ 50optional \ 51" to the end of the text file. How can i do this?

reviewNotes = contents.match(/Review Notes \50optional\51\n==================(.*?)/m)[1].strip
+5
source share
2 answers
Review Notes \50optional\51.*$
+1
source
if subject =~ /Review Notes \\50optional\\51.*\z/m
    match = $&
else
    match = ""
end
+1
source

All Articles