Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I match string till end of text file?

In this line of code I want it to match the string from 'Review Notes \50optional\51' till the end of the text file. How can I do this?

reviewNotes = contents.match(/Review Notes \50optional\51\n==================(.*?)/m)[1].strip
like image 652
thisiscrazy4 Avatar asked Nov 05 '22 15:11

thisiscrazy4


1 Answers

Review Notes \50optional\51.*$
like image 99
Kirill Polishchuk Avatar answered Nov 09 '22 10:11

Kirill Polishchuk