I am facing an issue with extracting content from a given string:
var string = "From: Sarah<br />
Sent: 10 May 2021 09:45:20</br />
To: Alice<br />
Subject: Meeting Reminder<br /><br />
Hi Alice,
<br />
Here is a reminder about our meeting tomorrow.
<br />
See you then!
<br />
Sarah"
I need to extract the email body content starting from the line after the "Subject" line in the given string.
My current approach involves using the substring method like this:
string.substring(string.lastIndexOf('Subject'), string.length - 1)
However, this approach also includes the "Subject" line in the extracted content which is not desirable. Is there any regex library or alternative method that can help me achieve the desired result?