I have sentences like
Cash is king. The day you prepared the accounting plan, I was sure that you will draft the accounting standards carefully and our accounts will not required to be window dressed. Sir you write the narration.
and I want to split this sentence with ?
and .
for that I have used
var words= 'Cash is king. The day you prepared the accounting plan, I was sure that you will draft the accounting standards carefully and our accounts will not be required to be window dressed. Sir you write the narration.';
var split = words.split(".");
console.log(split);
it is working but I want to split the sentence with ?
and .
both at the same time. How can I do that?
can anybody help me with this