<div>hello~</div><div>I am making comment removing function</div><div>but </div><div>when str contains</div><div>#| comment 1 |#</div><div>(define values1 1)</div><div>#| comment 2 |#</div><div>(define values2 2)</div><div>
#| comment 3 |#</div><div><br></div><div>the following code delete all of my str</div> (regexp-replace* &quot;\\#\\|(.*)\\|\\#&quot; str &quot; &quot;)<div><br></div><div>could somebody let me know how to remove only these comments ?</div>