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



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!