00001 <?php
00021 function smarty_modifier_count_sentences($string)
00022 {
00023 // find periods with a word before but not after.00024 return preg_match_all('/[^\s]\.(?!\w)/', $string, $match);
00025 }
00026
00027 /* vim: set expandtab: */00028
00029 ?>