Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
  
</body>
</html>
 
var strD = "Some text<div><br/></div>Second part of the text";
var strB = "Some text<b><br/></b>Second part of the text";
var strI = "Some text<i><br/></i>Second part of the text";
var regexp = /<br\/>(?=(?:(?:<\/b>)|(?:<\/i>)|(?:<\/div>)))/;
console.log(strD.split(regexp));
console.log(strB.split(regexp));
console.log(strI.split(regexp));
Output 300px

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
Tibospro
0viewers