Remove a line with specific characters in a variable before putting into CSV
<p>I would like to ask what is the efficient way to achieve this.</p>

<p>I have a variable that holds the data below which is to be pass into a CSV file.</p>

<pre><code>"Name","Address","Email","Comment"
", &lt;=, ",", &lt;=, ",", &lt;=, ",", &lt;=, "
"John Smith","USA","john@john.net","No Comment"
</code></pre>

<p>What I want to achieve is to remove the second line so that before I push the data into the CSV those characters already remove.</p>

<pre><code>", &lt;=, ",", &lt;=, ",", &lt;=, ",", &lt;=, "
</code></pre>

<p>The only thing that I can do right now is to save the data into a file then manipulate it then use it for CSV but I am sure there is a faster way to manipulate.</p>
