title: JavaScript text between double quotes
body: <p>I would like to get the text between double quotes using JavaScript. I found online something like <code>title.match(/".*?"/);</code> but the thing is that sometimes I have text between double quotes but sometimes there are no quotes. What I am saying is that sometimes I receive strings like: <code>Neque porro quisquam est qui dolorem ipsum</code> and sometimes strings like: <code>Neque "porro quisquam est" qui dolorem ipsum</code>. The thing is, when I have text containing double quotes I want to retrieve the text between them but when they aren't present, I'd like the whole text.
  Also I have observered that <code>string.indexOf("\"")</code> does not work and I don't really know how to approach this problem. Thanks.</p>