【发布时间】:2016-04-06 15:38:10
【问题描述】:
我正在使用 PHP 中的preg_split 函数将一个段落拆分为多个句子。
就我而言:
$str = 'Applicants can check the final result of Admissions through the online enquiry system. The online enquiry system will be available from 10:00 a.m. on November 16 (Wednesday).';
$arr = preg_split('/\./', $str);
当有a.m. 或p.m. 时如何排除这种情况?
【问题讨论】:
标签: php regex preg-split