hi
segmentText = <input from textarea>;
testRgx = [/( \d+\.| [^\W\d_]\.|.)+?([!?.。](?= |$)|$)/g];
arrSegments = segmentText.match(testRgx);
This expression fails if segmentText has \n or other white spaces in it.I want to add \n in to the list of chars that the above pattern use [!?.。] => [!?.。\n] so that the segment is separated based on the \n character