У меня есть этот фрагмент текста в строке:
<p class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: center; line-height: normal;" align="center"><i style=""><span style="" lang="ES-TRAD">some text
another text<o:p></o:p></span></i></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: center; line-height: normal;" align="center"><i style=""><span style="" lang="ES-TRAD">some text more
and some text more<o:p></o:p></span></i></p>
Если я делаю
string.replace(/[\r\n]/g, "");
все возвраты каретки будут удалены, я просто хочу удалить тех, кто находится между "некоторым текстом" и "другим текстом", я имею в виду внутри промежутков.
Заранее спасибо.