I\'m trying to use a regex to split a chunk of Chinese text into sentences. For my purposes, sentence delimiters are:
You're missing the $limit parameter to preg_split().
array preg_split ( string $pattern , string $subject [, int $limit = -1 [, int $flags = 0 ]] )
As a result, you're passing PREG_SPLIT_DELIM_CAPTURE (2) + PREG_SPLIT_NO_EMPTY (1) = 3 as the $limit. That's why it's stopping at three.
Add null as the $limit parameter, and you're in good shape.
preg_split($pattern, $str, null, PREG_SPLIT_DELIM_CAPTURE|PREG_SPLIT_NO_EMPTY)