limit
split
<button onclick="myFunction()">Try it</button> <p id="demo"></p> <script> function myFunction() { var str = "1234|5678|2345|Hello World|43456|45345|5345"; var res = str.split("|").join("<br/>"); document.getElementById("demo").innerHTML = res; } </script>
var s = "1111|2222|hello there|99999"; var o = s.split("|"); console.log(o);
["1111", "2222", "hello there", "99999"]
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)