In this line of code I want it to match the string from 'Review Notes \50optional\51' till the end of the text fi开发者_开发知识库le. How can I do this?
reviewNotes = contents.match(/Review Notes \50optional\51\n==================(.*?)/m)[1].strip
Review Notes \50optional\51.*$
if subject =~ /Review Notes \\50optional\\51.*\z/m
match = $&
else
match = ""
end
精彩评论