I want to break a paragraph into sentences in jquery. Let's say I have a paragraph
This is a wordpress plugin. its older version was 2.3.4 and new version is 2.4. But the version 2.4 had a lot of bungs. Can we solve it?
I want to break it into
This is a wordpress plugin.
its older version was 2.3.4 and new version is 2.4.
But the version 2.4 had a lot of bungs.
Can we solve it?
is there any solution for this. I tried to use this function, but it is also a separate sentence when the number arrived.
var result = str.match( /[^\.!\?]+[\.!\?]+/g );
thank
Ahmad source
share