Is there a way to extract dialogue, the content between quotes, from a paragraph in javascript and save it in an array?
var myParagraph = '
“Of course I’ll go Kate. You should get back to bed. Would you like some Nyquil or Tylenol?”
“Nyquil, please. Here are the questions and my mini-disc recorder. Just press record here. Make notes, I’ll transcribe it all.”
“I know nothing about him,” I murmur, trying and failing to suppress my rising panic. “The questions will see you through. Go. It’s a long drive. I don’t want you to be late.” “Okay, I’m going. Get back to bed. I made you some soup to heat up later.” I stare at her fondly. Only for you, Kate, would I do this.'
How can I split myParagraph to return an array like:
paragraphArray = ["Of course I’ll go Kate. You should get back to bed. Would you like some Nyquil or Tylenol?",
"Nyquil, please. Here are the questions and my mini-disc recorder. Just press record here. Make notes, I’ll transcribe it all.",
"I know nothing about him,",
"The questions will see you through. Go. It’s a long drive. I don’t want you to be late.",
"Okay, I’m going. Get back to bed. I made you some soup to heat up later."]
Thank you.