Just check this code using this code you can
separated setences.
i am
septences where dots using
pipe line.
<
script>
function myFunction
() {
myElement = document
.getElementById("demo")
.value;
var rex = /
(<([^
>]+)
>)/
ig;
res =
myElement.replace
(rex,"");
var newchar = '|'
var res = res
.split
('.')
.join(newchar);
document.getElementById('result')
.innerHTML = '{' + res + '}'
}
</
script>
<
br />
<
br />
<
textarea cols="100" id="demo" name="demo" rows="25"></
textarea>
<
br />
<
div id="result">
</
div>
<
button onclick="myFunction
()">Try it</button>
0 komentar:
Post a Comment