extract line matching string in javascript
<p>If a string is( \n separating line)</p>

<pre><code>this is good string 1
this is bad string 1
this is good string 2
this is bad string 2
.
.
.
</code></pre>

<p>I want get string that has lines that match a phrase say "good string"</p>

<pre><code>this is good string 1
this is good string 2
</code></pre>
