javascript と regex を使用して文字列を分解する方法 ブレーク<br>
の後に次のタグのいずれかが続く エンクロージャ</i>
または</div>
または</b>
?
たとえば、私の文字列が次の場合:
var string = "Some text<div><br></div>Second part of the text";
また
var string = "Some text<b><br></b>Second part of the text";
また
var string = "Some text<i><br></i>Second part of the text";
文字列の出力は次のようになります。
string[0] = "Some text";
string[1] = "Second part of the text";
どうもありがとう!